Tue, 2012-01-24 18:16
Hello all.
I hate to feel like I'm wasting people's time with this, because I know I'm probably missing something really small, and really obvious, but it's driving me INSANE.
Basically, all I want is for some text to be one colour when standard, another colour when hovered over. I can get it to work fine straight away in Firefox and Chrome, but IE refuses to pay any attention to it.
I've been trying to break it down, so here is my incredibly simple bit of code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title></title> <style title="stylesheet" type="text/css"> body {background-color:green;} a1 { color:white; } a1:hover { color:black; } </style> </head> <body> <br> <a1>Hello</a1> </body> </html>
Like I said, works perfectly in FF and C, but not IE. What am I doing wrong?
Thanks in advance! =D
Sun, 2012-01-29 18:48
#1
What is <al>? Browsers that
What is <al>? Browsers that support xhtml as xhtml will style the element as if you had extended the DTD. IE is not so lenient with non-standard elements.
cheers,
gary