Forum Moderators: not2easy
#main1 { width: 755px;background: url("/images/leftbg.gif") top left repeat-y; }
Which works perfectly in IE5/6 and Opera. But in Mozilla, Firefox and Safari it doesn't display the background image at all.
I have had this happen previously in developing this page, but was able to resolve the problem by fixing page errors.
Does anyone have any clue why this is not working in Mozilla based browsers?
The correct order for the background shorthand property is:
[<'background-color'> ¦¦ <'background-image'> ¦¦ <'background-repeat'> ¦¦ <'background-attachment'> ¦¦ <'background-position'>] ¦ inherit
You have position before repeat, try:
#main1 { width: 755px; background: url("/images/leftbg.gif") repeat-y top left; }
You may have to add 'scroll' between the -repeat and -position values.
PS: Safari is not a Gecko-based browser
After some fiddling, I notice the background *is* there, but it is only about 1/5th the size of the full cell.
Why is it stopping and not repeating for the entire height of the containing div? I use no absolute positioned elements at all, just floats for a 2 column layout.
Thanks