You are here: Re: display:none ignored « HTML « IT news, forums, messages
Re: display:none ignored

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация