Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: open
I've tried html align: right or css text-align: right in the colgroup tag. No response from FF. It works in IE7. Other attributes work okay (background-color, etc.)in FF. Text-align does work in th or td tags.
I hope to have left-hand headings align left but the dollar columns must be aligned right.
Does anyone know anything about this?
- set a background color
- set a width
- set a border
- control visibility
There are complex reasons for this (I've lost the link I had to the whys).. but it's to something to td's and th's not inheriting because they are not actually descendants of <colgroup>, <col> elements
SO IE is on it's own in its support of text-align its support list is a bit longer than the above due to its own reasons?.
I think you can do want you want for both IE and Others without adding classes to all the cells though if that's what you're after?
Use the <col> element for IE6 and use advanced CSS Selectors for FF/Opera - IE7 will work with both. depends on what browser support you need though
it seems strange that although tables were established largely for number oriented tabular columns that a key element has been so badly overlooked.
I agree, that it seems strange, I wonder if it's a victim of tables being abused and then recs/specs being adhered to rigidly by the newer browsers
In a way it makes a certain kind of sense that MS support is 'better', as its support for tables for tabular data has always been better
The stalemate (if that's the right word) with the tables for layout side is that IE doesn't support CSS table properties - I think of it like a bit of a stand off, at times, with the compliant browsers taking the recs so literally they can't see that there is a legitimate use for something like text align on a column - unless there's some very good reasons for it I hope the 'compliant lot' will come around.