I need to have images that extend along the left and right sides of my main div body (actually for a kind of shadow shadow effect under the div).
It would be simple if it were not for the fact that I want this div to be extensible , and I need it to work in IE7 and IE8, and I want it to expand to the bottom of the page.
I tried using polyfills to get CSS3 magic, but they didn't work either (I tried PIE and some filters without any luck).
I feel like I tried everything ... that brings me here! This is as long as I only got CSS / html, I feel that I should be able to work it, but there is still no cigar:
<div class="left-image"> <div class="right-image"> main body text </div> </div>
with the following css:
html,body{ height: 100% } .left-image{ background: transparent url('image/url.png') repeat-y top left; min-height: 100%; min-width: 960px; max-width: 1280px; margin: 0 auto; } .right-image{ background: transparent url('image/url.png') repeat-y top left; height: 100%; }
This causes div.left-image to fill the height of the browser window or the height of the content (whichever is greater), but div.right-image only matches the height of the content (so if the content is smaller than the browser window, it will not be filled).
How to get around this? Just use jQuery?
Sabrina leggett
source share