471,338 Members | 900 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

problem with "div" in a "table" does any one know? PLEASE

hello
i have the code below:
<html>
<body>
<table>
<div id="div1" style="display :none">
<tr>
<td>
uuu
</td>
</tr>
</div>
</table>
</body>
</html>

i want in table tag to display or not display ( according to some
bussnies rules ) a section of some rows.
but the tag div dosnt work for me inside the table tag.
if i remove the table tag it is work and not diplay the code inside
the div.

does any one know how to resolve this problem.
i dont want to put style on every row in the table.
i want to wrap a section of row in order to control on them via
javascript
thank u a lot
Jul 23 '05 #1
1 1333
avihaimar wrote:
i have the code below:
Is your shift key broken?
<table>
<div id="div1" style="display :none">


This is invalid HTML. <div> may not be a child of <table>. Make use of
http://validator.w3.org/

Possibly <tbody> would suit you better.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

19 posts views Thread by CMAR | last post: by
18 posts views Thread by Mr.Clean | last post: by
2 posts views Thread by swethak | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.