CSS not working in Firefox 2.0
my site looks right in new browsers, but it won't display the background of the main container in older ones.
here is the css that should put the background there:
#container {
back开发者_运维技巧ground-image:url('photo.png');
background-repeat: no-repeat;
height: 541px;
width:1020px;
margin: auto;
position: relative;
}
What am I doing wrong? Thank you.
am not sure if I am right, but try thiss
background: url('photo.png') no-repeat;
Try using an absolute path. You can also ignore Firefox 2.0, which is not used by anyone today.
精彩评论