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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • avihaimar

    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
  • David Dorward

    #2
    Re: problem with &quot;div&qu ot; in a &quot;table&quo t; does any one know? PLEASE

    avihaimar wrote:
    [color=blue]
    > i have the code below:[/color]

    Is your shift key broken?
    [color=blue]
    > <table>
    > <div id="div1" style="display :none">[/color]

    This is invalid HTML. <div> may not be a child of <table>. Make use of
    W3C's easy-to-use markup validation service, based on SGML and XML parsers.


    Possibly <tbody> would suit you better.

    --
    David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is

    Comment

    Working...