Forum Moderators: not2easy

Message Too Old, No Replies

Displaying background in Mozilla

         

Gordon2004

8:31 pm on Dec 2, 2003 (gmt 0)

10+ Year Member



Hey all,

I'm very new to CSS (and HTML coding in general) so this will (hopefully) be an easy problem to solve:

I'm using CSS to display a background, it works fine in IE and Opera, but no background is displayed at all in Mozilla. Here is a copy of the CSS code used to display my background:

body {
margin: 0;
padding: 0;
background-image: url(back.gif);
}

I am aware of the transparency bug in older versions of Mozilla, but my background does not have any transparency. I have also tried using a jpg background and this doesn't change anything. I am using Mozilla 1.5

Thanks for your help!

Gordon2004

8:58 pm on Dec 2, 2003 (gmt 0)

10+ Year Member



I fixed it!

I'm such a noob! I'm using a external CSS file but had forgotten to take the <style type="text/css"> tag off it. So Mozilla ignored my first statement which was my body { one. Mozilla was actually the only browser to display it correctly!

photon

9:01 pm on Dec 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Good job Gordon!