display:none in FireFox ?

Discussion in 'HTML' started by Martin, Jun 22, 2005.

  1. Martin

    Martin Guest

    I'm using the following in a table in which I want the right-most
    column to be hidden. This works as expected in IE but not in FireFox.

    What am I doing wrong?

    <colgroup>
    <col width='18%' style='font-weight: bold'>
    <col width='16%' style='font-weight: bold'>
    <col width='13%' style='font-weight: bold'>
    <col width='20%' style='font-weight: bold'>
    <col width='33%' style='font-weight: bold'>
    <col width='1%' style='display:none'>
    </colgroup>
    Martin, Jun 22, 2005
    #1
    1. Advertising

  2. David Dorward, Jun 22, 2005
    #2
    1. Advertising

  3. Martin

    Martin Guest

    Martin, Jun 22, 2005
    #3
  4. Martin wrote:
    > On Wed, 22 Jun 2005 18:44:37 +0100, David Dorward <>
    > wrote:
    >
    >
    >>Martin wrote:
    >>
    >>
    >>>This works as expected in IE but not in FireFox.

    >>
    >>><col width='1%' style='display:none'>

    >>
    >>http://www.w3.org/TR/CSS21/tables.html#q4
    >>http://ln.hixie.ch/?start=1070385285&amp;count=1

    >
    >
    > Thanks. I looked at both of these but I didn't find the answer to my
    > question.
    >
    > Can someone possibly give me an example of how to hide this column in
    > both IE and FireFox?
    >
    >


    Did you read the article on the 2nd link? It answered your question,
    'no' because 'col' is not container of the table cells...

    At present, the only way I know of to set the table cells of said column
    to a class where you have set the display property to 'none'


    <style type="text/css">
    .hideme {display:none}
    </style>


    <table>
    <col width="200"><col width="300"><col width="400">
    <tr><td>Visable</td><td>Visable</td><td class="hideme">Hidden</td></tr>
    <tr><td>Visable</td><td>Visable</td><td class="hideme">Hidden</td></tr>
    <tr><td>Visable</td><td>Visable</td><td class="hideme">Hidden</td></tr>
    <tr><td>Visable</td><td>Visable</td><td class="hideme">Hidden</td></tr>
    <tr><td>Visable</td><td>Visable</td><td class="hideme">Hidden</td></tr>
    <tr><td>Visable</td><td>Visable</td><td class="hideme">Hidden</td></tr>
    </table>



    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Jun 22, 2005
    #4
  5. Martin wrote:

    >>http://www.w3.org/TR/CSS21/tables.html#q4
    >>http://ln.hixie.ch/?start=1070385285&amp;count=1

    >
    > Thanks. I looked at both of these but I didn't find the answer to my
    > question.


    "You are trying to set display on the <col>, where it is not supported in
    CSS".

    > Can someone possibly give me an example of how to hide this column in
    > both IE and FireFox?


    You have to set the display property of every cell in that column.

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
    David Dorward, Jun 22, 2005
    #5
  6. Martin

    Martin Guest

    On Wed, 22 Jun 2005 23:05:05 +0100, David Dorward <>
    wrote:

    >Martin wrote:
    >
    >>>http://www.w3.org/TR/CSS21/tables.html#q4
    >>>http://ln.hixie.ch/?start=1070385285&amp;count=1

    >>
    >> Thanks. I looked at both of these but I didn't find the answer to my
    >> question.

    >
    >"You are trying to set display on the <col>, where it is not supported in
    >CSS".
    >
    >> Can someone possibly give me an example of how to hide this column in
    >> both IE and FireFox?

    >
    >You have to set the display property of every cell in that column.


    OK, I get it now.

    Thanks
    Martin, Jun 23, 2005
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Freeman
    Replies:
    8
    Views:
    7,624
    tcena9
    Feb 16, 2011
  2. length power
    Replies:
    2
    Views:
    71
    Rustom Mody
    Apr 10, 2014
  3. Skip Montanaro
    Replies:
    0
    Views:
    51
    Skip Montanaro
    Apr 10, 2014
  4. Johannes Schneider

    Re: why i have the output of [None, None, None]

    Johannes Schneider, Apr 10, 2014, in forum: Python
    Replies:
    0
    Views:
    46
    Johannes Schneider
    Apr 10, 2014
  5. Terry Reedy
    Replies:
    0
    Views:
    55
    Terry Reedy
    Apr 10, 2014
Loading...

Share This Page