You are here: Re: using "col" and "colgroup" tags in firefox?!? « HTML « IT news, forums, messages
Re: using "col" and "colgroup" tags in firefox?!?

Posted by Davmon on 11/20/75 11:36

Jukka K. Korpela arranged shapes to form:

> Davémon <"davémon"@nospam.com> wrote:
>
>> Ask Josephsen arranged shapes to form:
>>> I'm having trouble aligning text in my tables, I would really like to use
>>> the col- and colgroup-tags to do this, but I cant seem to make it work in
>>> firefox 1.5 :(
>>
>> unfortunately firefox is obeying the w3c guidelines on the style method:
>> http://www.w3.org/TR/REC-CSS2/tables.html#q4
>
> What's so unfortunate about it? If a specification is unsatisfactory, would
> it really help to make some browsers behave against it, knowing that some
> browsers will keep behaving according to it anyway.

I meant unfortunate for the OP.

>
>> the attribute align="left" should work fine,
>
> Pardon? For what?
>

Aligning text left, or "right".

>
> It is possible to make standards-conforming browsers align the cells using
> just CSS, without need to throw attributes here and there and mess up the
> markup.

Have attributes been depreciated or something? Perfectly clean and
legitimate last time I looked.

> However, the CSS code gets verbose, e.g.
>
> td:first-child + td + td,
> td:first-child + td + td + td ,
> td:first-child + td + td + td + td {
> text-align: right; }
>

That's just bonkers, surely just throwing a class attribute in and single
css declaration would be cleaner.

--

Davémon
http://www.nightsoil.co.uk/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация