FireFox 1.5 and table columns not working as expected.

Posted on 2006-05-01
Last Modified: 2011-09-20

I'm using FireFox on WinXP.

When trying to display the example HTML table listed bellow FF ignores the <COL> tags.
The last column displays as red in IE 6 but not FF.


example from:


<COL STYLE="color:red">

<TR> <TH>Expense</TH> <TH>Price</TH> <TH>Status</TH> </TR>
<TR> <TD>office suite</TD> <TD>1,343.56</TD> <TD>rental</TD> </TR>
<TR> <TD>cabling</TD> <TD>1.25</TD> <TD>installed</TD> </TR>
Question by:Matthew_Way
    LVL 14

    Accepted Solution

    Apparently FF has been having support issues with <col> and <colgroup> since ever, with a bug report starting in 1998.

    Although it does support some CCS styling on the tags:

    If the behavior expected from the col tags is important I would consider not using them in favor of CSS styling:
    LVL 3

    Expert Comment

    Yep it's not a problem with your end... this is a known issue with FF and one of the few things it doesn't handle properly.
    LVL 15

    Assisted Solution

    In FF bug database they suggest workaround - adding one line to style section.
    Your sample:

    <style type="text/css"><!--
    /* FF, for IE see col */
    table td:first-child+td+td {color:red;}

     <COL STYLE="color:red">
    <TR> <TH>Expense</TH> <TH>Price</TH> <TH>Status</TH> </TR>
    <TR> <TD>office suite</TD> <TD>1,343.56</TD> <TD>rental</TD> </TR>
    <TR> <TD>cabling</TD> <TD>1.25</TD> <TD>installed</TD> </TR>

    Another sample:

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Problem I downloaded the Microsoft Internet Explorer 9 Beta, today, to give it a test drive and maybe write a review for the site, and it failed miserably and got stuck in a crash restart loop. The error message given is as illustrated below i…
    Now-a-days, indirectly, postal services have been replaced by email services. Yes, whenever we hear the word "email" a lot of people only think of gmail. Some people still think that email and gmail are one and the same thing :-). Let's see some …
    This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
    How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now