Div layer at 100% width leaves right side gap in IE
Posted on 2007-07-30
I'm trying to make a header graphic which stretches (tiles actually) all the way across the top of the browser and leaves no gaps. Here's the code so far:
<div style="position: absolute; height: 123px; z-index: 1; left: 0px; top: 0px; width: 100%; background-image: url('header.png'); background-repeat: repeat-x" id="layer1">
The problem is that IE seems to be leaving a small gap on the right hand side of the div layer. How can I make this stretch to 100% of the width? I'm using IE 7.