kneele00
08-17-2007, 09:50 PM
Why doesn't this work? I can do these kind of overrides with other attributes but underline cannot be overridden for some reason. TIA.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<style type="text/css">
.underline {text-decoration:underline;}
.nounderline {text-decoration:none;}
</style>
</head>
<body>
<div class="underline">
underline me
<div class="nounderline">
don't underline me
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<style type="text/css">
.underline {text-decoration:underline;}
.nounderline {text-decoration:none;}
</style>
</head>
<body>
<div class="underline">
underline me
<div class="nounderline">
don't underline me
</div>
</div>
</body>
</html>