Posted by Jonathan N. Little on 11/01/06 14:04
Beauregard T. Shagnasty wrote:
> Willem Alberda wrote:
<snip>
> <table>
> <tr><td><span style='display:block'>Number one</span></td></tr>
> <tr><td><span style='display:none'>Number two</span></td></tr>
> <tr><td><span style='display:block'>Number three</span></td></tr>
> </table>
<snip>
> <span> is an inline element, and cannot contain a block level element.
> The validator would have told you this.
>
> Now ... would a *list* be more appropriate for the above, instead of a
> table?
>
Agreed!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Better way</title>
<style type="text/css">
.NoSee { display: none; }
</style>
</head>
<body>
<ul>
<li>Number one</li>
<li class="NoSee">Number two</li>
<li>Number three</li>
</ul>
</body>
</html>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|