dlo 0

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

http://www.printlineadvertising.co.uk/demo/backgrounds/

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

2
points

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.

e.g.

http://www.htmlite.com/faq022.php

Answered over 6 years ago by Tony Crockford
0
points

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 over 6 years ago by John Turknett