dlo 0

It's easy to create a full width 100% image in a 100% width DIV in a compliant browser


But, IE7 8 is not playing on this one. It creates the DIV at 100% width, but the image remains at the actual size width

Anyone know how to coax IE into behaving?

2 answers


The trick for IE is to have a hidden div with the actual image in it - set to 100% wide and high in the html and absolutely position it behind the div that has the background.



Answered almost 9 years ago by Tony Crockford

I am using IE8 at work right now and the example link you posted is in fact stretching across the screen in the header section of the page. Did you find your answer?

Answered almost 9 years ago by John Turknett