Muiter Posted June 5, 2011 Share Posted June 5, 2011 For some reason the shadow of the bottom part of an div is not showed correctly.How can I change this?This is the CSS of the bottom part of the div:.pulldown_bottom { background-color: #DDDDFD; font-family: Arial; font-size: 12px; cursor: auto; /*--CSS3 Rounded Corners--*/ -webkit-border-bottom-left-radius: 10px; -webkit-border-bottom-right-radius: 10px; -moz-border-bottom-left-radius: 10px; -moz-border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; /*--CSS3 Box Shadows--*/ -webkit-box-shadow: 0px 8px 15px #000; -moz-box-shadow: 0px 8px 15px #000; box-shadow: 0px 8px 15px #000;} Link to comment Share on other sites More sharing options...
jeffman Posted June 5, 2011 Share Posted June 5, 2011 What you're seeing is correct according to most implementations. A shadow is not considered part of an element's "space." Since you don't define "correct" I'll offer two possibilities.1. You would like the shadow to overlap the area where the numbers are. Try adding a z-index value of 10 or something.2. You would like space between the shadowed element and the area where the numbers are. The space should be equal to the height of the shadow. Try adding a margin-bottom rule. Plan on adjusting it several times before it looks right.You could even combine these 2 ideas. Link to comment Share on other sites More sharing options...
Muiter Posted June 5, 2011 Author Share Posted June 5, 2011 1. You would like the shadow to overlap the area where the numbers are. Try adding a z-index value of 10 or something.Thank you for explaining. To what part should I add an z-index? Link to comment Share on other sites More sharing options...
jeffman Posted June 5, 2011 Share Posted June 5, 2011 The element that has the "disappearing" shadow. Link to comment Share on other sites More sharing options...
dsonesuk Posted June 5, 2011 Share Posted June 5, 2011 Just to clarify, that if you plan to use z-index: the element using this MUST have a position: declaration defined, in this case most likely position: relative;. Link to comment Share on other sites More sharing options...
Muiter Posted June 5, 2011 Author Share Posted June 5, 2011 Thanks an lot Deirdre's Dad Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.