PDA

View Full Version : Firefox and CSS body tag



lilleypants
April 18th, 2008, 05:56 AM
body {
background:url(CutUp%20Images/backgroundRepeat.gif) repeat-y repeat-x;
background-position:center center;
background-attachment:fixed;
position:relative;
}

When I use this code in IE the background image appears fine and repeated but when used in firefox the background doesn't even appear. Any ideas as to why firefox isn't reading the body tag?

Thanks for any pointers.:look:

fasterthanlight™
April 18th, 2008, 10:33 AM
you can't have both repeat-y and repeat-x defined, its either or, if you want both, just don't put anything :)

css by default repeats things on both axis

lilleypants
April 22nd, 2008, 03:59 AM
Ahhh cheers. That solves it.