![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Sanity check. I'm trying to apply style to a table column by specifying a class on a <col tag. Testcase at http://pages.prodigy.net/chris_beall...l%20style.html. Firefox seems not to understand the concept at all, i.e. it acts as if no style was specified. IE 6 gets the concept and correctly styles the first two columns, but does not put a border around the third column as requested. I'll report this as a FF bug unless: - Someone can show me where I've gone wrong or - Someone can identify it as a known FF bug. |
#3
| |||
| |||
|
|
Sanity check. I'm trying to apply style to a table column by specifying a class on a <col tag. Testcase at http://pages.prodigy.net/chris_beall...l%20style.html. Firefox seems not to understand the concept at all, i.e. it acts as if no style was specified. IE 6 gets the concept and correctly styles the first two columns, but does not put a border around the third column as requested. I'll report this as a FF bug unless: - Someone can show me where I've gone wrong or - Someone can identify it as a known FF bug. Thanks, Chris Beall |
#4
| |||
| |||
|
|
I'm trying to apply style to a table column by specifying a class on a <col tag. |
#5
| ||||
| ||||
|
|
Sanity check. I'm trying to apply style to a table column by specifying a class on a <col tag. Testcase athttp://pages.prodigy.net/chris_beall/Demo/No%20col%20style.html.. Firefox seems not to understand the concept at all, i.e. it acts as if no style was specified. |
|
IE 6 gets the concept and correctly styles the first two columns, |
|
not put a border around the third column as requested. I'll report this as a FF bug unless: - Someone can show me where I've gone wrong |
|
or - Someone can identify it as a known FF bug. |
#6
| |||
| |||
|
|
.three { border: 1px solid black ; } Your col class="three" should have a border though... Not sure why it does not in Firefox 2.0.0.11, Opera 9.50 and Safari 3.0.4. |
#7
| |||
| |||
|
|
Chris Beall wrote: Sanity check. I'm trying to apply style to a table column by specifying a class on a col tag. Testcase at http://pages.prodigy.net/chris_beall...l%20style.html. Firefox seems not to understand the concept at all, i.e. it acts as if no style was specified. IE 6 gets the concept and correctly styles the first two columns, but does not put a border around the third column as requested. I'll report this as a FF bug unless: - Someone can show me where I've gone wrong or - Someone can identify it as a known FF bug. I remember reading about this some time ago. The problem is COL is not really an element part of the DOM, it is more like a presentational HTML attribute. Use a DOM inspector and your will not see the COL element on your page, so it cannot be styled with CSS. Maybe someone else has a more technically precise explanation. Jonathan, |
#8
| |||
| |||
|
|
In article <2NF6j.5091$fl7.2230 (AT) newssvr22 (DOT) news.prodigy.net>, "Chris Beall" <Chris_Beall (AT) prodigy (DOT) net> wrote: Sanity check. I'm trying to apply style to a table column by specifying a class on a col tag. Testcase at http://pages.prodigy.net/chris_beall...l%20style.html. Firefox seems not to understand the concept at all, i.e. it acts as if no style was specified. IE 6 gets the concept and correctly styles the first two columns, but does not put a border around the third column as requested. I'll report this as a FF bug unless: - Someone can show me where I've gone wrong or - Someone can identify it as a known FF bug. Thanks, Chris Beall I think col should be used in a *colgroup* to be strict. But even so, there is not reliable browser support for things that you would think would work well, like background colours. If you try background on your col you will see it will work in FF but it is totally without effect in my Safari (Mac and version 2.04). There are plenty of other ways to achieve most things though. -- dorayme |
#9
| |||
| |||
|
|
On Sat, 8 Dec 2007 16:28:54 -0700, "Chris Beall" Chris_Beall (AT) prodigy (DOT) net> wrote: I'm trying to apply style to a table column by specifying a class on a col tag. I had similar results. Since all the class did on the page I converted was set a smaller font-size (replacing <font ...> tags in 3000+ table rows), FF users just miss out on the author's tiny text. When I did the research and found <col> I was confused about whether a class could be applied, and probably wanted to believe what I was looking for. Can't find the same links at the moment, but did come this similar question at <http://www.thescripts.com/forum/thread95908.html> which pointed to the spec at <http://www.w3.org/TR/CSS2/tables.html#q4>. Class can be applied, but apparently only for a very limited set of properties. Looks like we have a feature request. -- Charles |
#10
| ||||
| ||||
|
|
Sanity check. I'm trying to apply style to a table column by specifying a class on a col tag. Testcase athttp://pages.prodigy.net/chris_beall/Demo/No%20col%20style.html. Firefox seems not to understand the concept at all, i.e. it acts as if no style was specified. |
|
IE 6 gets the concept and correctly styles the first two columns, |
|
not put a border around the third column as requested. I'll report this as a FF bug unless: - Someone can show me where I've gone wrong |
|
or - Someone can identify it as a known FF bug. |
![]() |
| Thread Tools | |
| Display Modes | |
| |