CSS/HTML Shadow problem -
My problem with my site is that I want the shadow to close at the end of my text box
HTML
& lt; Body & gt; & Lt; Div id = "shadow" class = "floatfix" & gt; & Lt; Div id = "shadowleft" & gt; & Lt; / Div & gt; & Lt; Div id = "shadowtop" & lt; Img src = "img / shadowcornerleft.png" alt = "hoek" id = "shadowcornerleft" /> & Lt; Img src = "img / shadowcornerright.png" alt = "hike" id = "shadow encoding" /> gt; & Lt; / Div & gt; & Lt; Div id = "shadowright" & gt; & Lt; / Div & gt; & Lt; Div id = "content" & gt; This is my CSS code:
#Shadow {margin-left: auto; Margin-right: auto; Margin-top: 75px; Width: 974px; } #Shadowoth {status: absolute; Height: 100%; Width: 27px; Margin-top: 42px; Background-image: url ("img / shadowleft.png"); Background-position: top left; Double-repeat: repeat-y; } #shadowright {status: absolute; Height: 100%; Width: 27px; Margin-top: 12px; Margin-left: 9 47 pixels; Background-image: url ("img / shadowright.png"); Background-position: top right; Double-repeat: repeat-y; } #shadotop {width: 892px; Height: 30px; Margin-left: auto; Margin-right: auto; Margin-top: 45px; Background-image: url ("img / shadowtop.png"); Background-position: 0; Double-repeat: repeat-x; } #Shadowochornbound {Status: Relative; Left: -42 px; Top: 0; } #shadowochronite {status: relative; Left: 850px; Top: 0; } # Content {width: 920px; Margin-left: auto; Margin-right: auto; Background color: white; Border bottom: 1px solid #cccccc; } I think this is the problem because of "height: 100%" But I do not know how to fix it.
Thank you in advance Vincent
One very easy way to do this is to Make a new background image elevating 960px by 10px, with its shadow on its side. (You may need to make changes to the width to get 9 20 pixels of shadow with the shadow below the sides)
Using your # shadow div will make that background almost to add # content example:
#shadow {width: 960px; Margin-left: auto; Margin-right: auto; Background: URL (shadow-side) recurrence- y left top; } Alternatively you might want to #content div to minimum-height: 100%; By adding and an IE6 hack:
* html #content {height: 100%; }
Comments
Post a Comment