![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a table with three columns, and I want the data in the first column to align left, while that in the remaining columns to align right: #testTable { text-align: right; } #leftcol { text-align: left; } table id="testTable" col id="leftCol" / col span="2" / tr>... Properties defined in ID leftCol are not seen. |
#3
| |||
| |||
|
|
I have a table with three columns, and I want the data in the first column to align left, while that in the remaining columns to align right: #testTable { text-align: right; } #leftcol { text-align: left; } table id="testTable" col id="leftCol" / col span="2" / tr>... Properties defined in ID leftCol are not seen. |
#4
| |||
| |||
|
|
I have a table with three columns, and I want the data in the first column to align left, while that in the remaining columns to align right: #testTable { text-align: right; } #leftcol { text-align: left; } table id="testTable" col id="leftCol" / col span="2" / tr>... Properties defined in ID leftCol are not seen. |
#5
| |||
| |||
|
|
On Sun, 14 Dec 2003 11:42:39 GMT, Haines Brown brownh (AT) teufel (DOT) hartford-hwp.com> wrote: I have a table with three columns, and I want the data in the first column to align left, while that in the remaining columns to align right: #testTable { text-align: right; } #leftcol { text-align: left; } table id="testTable" col id="leftCol" / col span="2" / tr>... Properties defined in ID leftCol are not seen. 'text-align' is not supported in columns and column-groups. Only a few CSS properties can be set for columns. See http://www.w3.org/TR/CSS21/tables.html#q4 and http://ln.hixie.ch/?start=1070385285&count=1 |
#6
| |||
| |||
|
|
Rijk van Geijtenbeek <rijk (AT) opera (DOT) com> writes: On Sun, 14 Dec 2003 11:42:39 GMT, Haines Brown brownh (AT) teufel (DOT) hartford-hwp.com> wrote: I have a table with three columns, and I want the data in the first column to align left, while that in the remaining columns to align right: #testTable { text-align: right; } #leftcol { text-align: left; } table id="testTable" col id="leftCol" / col span="2" / tr>... Properties defined in ID leftCol are not seen. 'text-align' is not supported in columns and column-groups. Only a few CSS properties can be set for columns. See http://www.w3.org/TR/CSS21/tables.html#q4 and http://ln.hixie.ch/?start=1070385285&count=1 Rijk and the others who so kindly corrected my mistake. In reading the documents referenced here, I gather that what I'm trying to do represents a problem not yet resolved. If so, then do I have simply to define each cell for which I want text to align left as members of a class having the property of text-align: left? If so, that is easy, but not as elegant as I would have hoped. |
#7
| |||
| |||
|
|
Haines Brown wrote: |
|
trying to do represents a problem not yet resolved. If so, then do I have simply to define each cell for which I want text to align left as members of a class having the property of text-align: left? If so, that is easy, but not as elegant as I would have hoped. Correct. The W3C is currently looking into a solution for this (and other) problems, maybe you can come up with something ;-). Applying a 'class' is the only way to go :-( |
#8
| |||
| |||
|
|
I have a table with three columns, and I want the data in the first column to align left, while that in the remaining columns to align right: #leftcol { text-align: left; } |
|
table id="testTable" col id="leftCol" / col span="2" / |
#9
| |||
| |||
|
|
#leftcol { text-align: left; } By the way. . .it's not good style to include the element's name in the class or id name. |
#10
| |||
| |||
|
|
Christoph Paeper <crissov2003Q4 (AT) gmx (DOT) net> writes: By the way. . .it's not good style to include the element's name in the class or id name. Perhaps a little philosophical and OT, |
|
The element's name is "col," while I've assigned the ID of "leftCol." |
![]() |
| Thread Tools | |
| Display Modes | |
| |