kaz Posted November 1, 2006 Share Posted November 1, 2006 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 More sharing options...
aspnetguy Posted November 1, 2006 Share Posted November 1, 2006 it was yellow for a split second while the page loaded, you must be placing something over top with a white background, post your stylesheet code Link to comment Share on other sites More sharing options...
shiftJIS Posted November 2, 2006 Share Posted November 2, 2006 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 More sharing options...
kaz Posted November 2, 2006 Author Share Posted November 2, 2006 Thanx Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now