homepage Welcome to WebmasterWorld Guest from 54.226.173.169
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
Financial tables in Firefox - aligning text with colgroup not working
FF doesn't respond to align: left/align: right
gstick




msg:3257135
 7:25 pm on Feb 19, 2007 (gmt 0)

Just started working withm financial tables. I find that getting text-alignment correct in column cells is a problem with FF.

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?

 

SuzyUK




msg:3257172
 8:14 pm on Feb 19, 2007 (gmt 0)

sadly, there's only a handful of things you can do with the <col> element and text-align is not one

- 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

Suzy

gstick




msg:3257676
 12:58 pm on Feb 20, 2007 (gmt 0)

Thanks SuzyUK for a right-to-the-point response.

As a final note--it seems strange that although tables were established largely for number oriented tabular columns that a key element has been so badly overlooked.

SuzyUK




msg:3258054
 7:23 pm on Feb 20, 2007 (gmt 0)

You're Most Welcome.

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.

Suzy

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved