BillyRayPreachersSon
Programmer
In Firefox (v1.0.4, although I have no idea about any other versions), the following code works fine, and underlines the button:
However, when I add in the DOCTYPE we are using to the top of the page:
The underline dissapears.
I've searched around on Google, and can find no reference to this quirk. The underline still works fine in IE 5, 5.5, 6, and even NN 7.0... but just vanishes on FF.
Does anyone have any idea why this is, or how to get it back while keeping that specific DOCTYPE?
Thanks!
Dan
[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
Code:
<html lang="en">
<head>
<style type="text/css">
.underlined {
text-decoration: underline;
}
</style>
</head>
<body>
<input type="button" value="A button" class="underlined" />
</body>
</html>
However, when I add in the DOCTYPE we are using to the top of the page:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
The underline dissapears.
I've searched around on Google, and can find no reference to this quirk. The underline still works fine in IE 5, 5.5, 6, and even NN 7.0... but just vanishes on FF.
Does anyone have any idea why this is, or how to get it back while keeping that specific DOCTYPE?
Thanks!
Dan
[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]