Results 1 to 4 of 4

Thread: not getting box-shadow effect

  1. #1
    Join Date
    Jun 2008
    Posts
    187
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default not getting box-shadow effect

    Hello,

    I have a div with a box-shadow:

    Click image for larger version. 

Name:	box-shadow.jpg 
Views:	74 
Size:	14.0 KB 
ID:	6223

    However, if I scroll the list until a highlighted item is under the box-shadow, no box-shadow shows up.

    Click image for larger version. 

Name:	no box-shadow.jpg 
Views:	73 
Size:	12.4 KB 
ID:	6224

    The only difference between the highlighted and unhighlighted items is that the highlighted item has this CSS:

    background: #f6f6f6;

    Why would setting the background color on the highlighted item remove the box-shadow effect?

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,734
    Thanks
    46
    Thanked 216 Times in 209 Posts
    Blog Entries
    53

  3. #3
    Join Date
    Jun 2008
    Posts
    187
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Well, here's the strange thing:

    I deliberately set the z-index of the div with the box-shadow to 100. All other divs in the list below it do not have their z-index set.

    Yet when I inspect the elements, I find that the z-index of the div with the box-shadow has been set to auto, and that all divs in the list have their z-index set to auto.

    Why would the z-index of my box-shadow div get set to auto?

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,734
    Thanks
    46
    Thanked 216 Times in 209 Posts
    Blog Entries
    53

Similar Threads

  1. Replies: 3
    Last Post: 05-29-2014, 12:40 AM
  2. Shadow
    By Dellahyam in forum CSS
    Replies: 1
    Last Post: 12-05-2013, 10:08 PM
  3. DDsmooth menu shadow effect in IE8
    By traq in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 11-14-2009, 02:11 AM
  4. Staggering start time of fading effect to create left to right animated effect?
    By AshleyQuick in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 04-18-2008, 07:54 PM
  5. I want a shadow
    By Ironside in forum CSS
    Replies: 1
    Last Post: 05-15-2007, 03:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •