Jump to content

my css code will not work :(


php4ever

Recommended Posts

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

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

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...