- Web Author (WA) : Hello, I think I found a bug in Firefox, my page shows correctly in IE, but not in Firefox.
- Firefox Fanatic (FxF) : That's because IE is a crap, IE is a
censored of censored. IE doesn't follow standards. First you should validate your webpage against standard.
- WA : It also shows fine in Opera.
- FxF : Opera is as crappy as IE. Opera sucks. Opera is
censored. Try with Chrome to see. Chrome is opensource. Chrome could be almost as good as Firefox, if it wasn't Google.
- WA : It doesn't show fine. Chrome renders it same as Firefox.
- FxF : Okay. Validating your page with the tool at w3c site should fix it. Always follow standards, if you follow standards, your page will show the same on all standard-compliant browsers.
- WA : Wait, my page validates perfectly. My page is XHTML 1.1 Strict compliant and also CSS2 compliant. But it isn't rendered correctly on Firefox. The cells in my table are always left-aligned, but I put
<colgroup align="right">.
- FxF : There should be something wrong in your code. Because, as you say, you don't see what you expect on Firefox and Chrome.
- WA : My page follows standards.
- FxF : So, the answer is that what you see in Firefox is what your page should be rendered if the other browsers also followed standards.
- WA : How could I do to make my cells align to right, then, following standards?
- FxF : Use
<td class="alignright"> and in you CSS, .alignright { text-align: right;}
- WA : My table has thousands of cells to be right-aligned. The colgroup was designed to avoid redundancy writing this parameter class="alignright".
- FxF : It's the first time I heard of this weird tag named colgroup.
- WA : Ah? that's why Firefox can't support it. By the way, look at bug #915 at bugzilla, reported on 1998-09-26 and still alive. This bug is 10 years old and still alive.
Further reading: Les dix ans d'un bug, Mozillazine: Lack of support for <col align="">.