In IE 7, the background is shifted 1 pixel up, but in FF is this ok?

In IE 7, the background is shifted 1 pixel up, but in FF is this ok?

 background: url(girl.jpg) top left repeat-x;
 position: relative;
 top: 0px;color: #666;
 border-bottom-color: white;

      

+2


a source to share


3 answers


you can use this

      top:0px;
    *top:1px;

*background-position:0px 1px;

      



  • only four IE7s work, so you can use that.

you can enter the value according to your design. in * top: px.

0


a source


I don't think it comes from a background image. Are you sure there is no transparent border or some other 1px offset elsewhere in the markup?



+1


a source


IE6 has bugs with background positioning on relative positioned elements. Is your document in standard mode? And try giving your hasLayout element for example. with zoom: 1

.

0


a source







All Articles