|
Posted by Davmon on 01/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/
[Back to original message]
|