Jump to content

Body background


kaz

Recommended Posts

Hi,I applied the tag body {background-color: #FFFF99;} to create a yellow background for all the pages on my website. However, I noticed that one of my pages, www.geocities.com/kkisie2000/fun_tricks.htm only has a white background Why is that?kaz

Link to comment
Share on other sites

No need ask for the code, it's right there.The problem is you have code like this:

<strong>BACKGROUND IMAGE THAT ISNT TILED</strong><br />	  This will create a background image that doesn't repeat: <style type="text/css"><!--BODY {background: #ffffff url(bg.gif) no-repeat}--></style><br />

I'm assuming the point of the page is to show pieces of css/html code that people could use on their site. The problem is, you didn't bother to escape the code, and the browser is treating it as actual style to be applied to the page. I think if you change the <'s and >'s to their html equivalents, then not only will your background not be white, but the intended code will be visible.

<strong>BACKGROUND IMAGE THAT ISNT TILED</strong><br />	  This will create a background image that doesn't repeat: <style type="text/css"><!--BODY {background: #ffffff url(bg.gif) no-repeat}--></style><br />

Gosh, it was complicated as heck trying to get those amps and stuff to show up right on the forum! The forum code kept converting them!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...