HighDots Forums  

Re: <span style="display: none;"> not working in a table...

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: <span style="display: none;"> not working in a table... in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ben C
 
Posts: n/a

Default Re: <span style="display: none;"> not working in a table... - 01-08-2008 , 05:03 AM






On 2008-01-08, jodleren <sonnich (AT) hot (DOT) ee> wrote:
Quote:
Hi

I have the code below. I have used something similar before (also in
tables), but this time the span in visible all the time - the idea is
to show the <tr> row only when needed.
What do I do wrong?
Set display: none on the tr instead.

Putting <span> in a <table> like that is such invalid HTML the browser
has assumed it can't possibly be what you meant and moved the span
somewhere else-- quite likely out of the table altogether.

This is why you have to validate. Not just anything goes.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.