php4ever Posted November 11, 2005 Share Posted November 11, 2005 I have the tag background-color in my css want but does not work . How can I fix that?My style sheet:<style type="text/css"><!--body { background-color: #add2ff;}A {FONT: 11pt Arial; TEXT-DECORATION: none}a:link { color: #333333;}a:visited { color: #000000;}a:hover { color: #FFFFFF;}a:active { color: #000000;}#box1 {position: absolute;top: 200px;left: 136px;}#box2 {position: absolute;top: 442px;left: 136px;}#box3 {position: absolute;top: 200px;left: 386px;}#box4 {position: absolute;top: 200px;left: 886px;}#box5 {position: absolute;top: 455px;left: 886px;}--></style> Link to comment Share on other sites More sharing options...
Paim Posted November 11, 2005 Share Posted November 11, 2005 try changing just body to body, html {} Link to comment Share on other sites More sharing options...
php4ever Posted November 11, 2005 Author Share Posted November 11, 2005 that will not work Link to comment Share on other sites More sharing options...
Paim Posted November 11, 2005 Share Posted November 11, 2005 Damn. Is there a live version of the site hosted on the net? And does it not work in all browsers or just one? Link to comment Share on other sites More sharing options...
scott100 Posted November 11, 2005 Share Posted November 11, 2005 Trybody{background: #add2ff; } Link to comment Share on other sites More sharing options...
Paim Posted November 11, 2005 Share Posted November 11, 2005 I just found out, it works perfectly, I also cleaned up your code a bit: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><style type="text/css"><!--body {background-color: #add2ff;}a {font-size: 11pt;font-family: Arial, Verdana, Tahoma;text-decoration: none;color: #333333;}a:visited {color: #000000;}a:hover {color: #FFFFFF;}a:active {color: #000000;}#box1 {position: absolute;top: 200px;left: 136px;}#box2 {position: absolute;top: 442px;left: 136px;}#box3 {position: absolute;top: 200px;left: 386px;}#box4 {position: absolute;top: 200px;left: 886px;}#box5 {position: absolute;top: 455px;left: 886px;}--></style></head><body> </body></html> 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