Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-01-19 17:20:25
- barnettgs
- Member
- Registered: 2005-09-20
- Posts: 23
^. table row valign doesn't work...
<code>table{border:1px solid black; width:200px; padding:3px}.
^. | This|is|a|/3. row dgh j ghj ghj gjk gjkg gjkg jk gj gjk jg kgjk gkg gjkgj jkgj kgjkgh jg hjj ghjghj gh jghj ghj ghjg hjgh j ghj ghj |
|This|h |a|
|This|is|a|</code>
I want to put in top align in rows spanned cell but /3. is already in cell so I put it before the row but it still doesn’t work?
Thanks
Last edited by barnettgs (2006-01-19 17:20:49)
Offline
#2 2006-01-19 21:16:58
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: ^. table row valign doesn't work...
Can a CSS guru confirm whether or not valign is valid on <tr>
elements?
Alex
Offline
#3 2006-01-20 02:42:29
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: ^. table row valign doesn't work...
See this thread.
It doesn’t make sense to apply vertical-align to the <tr>
element itself. In an ideal world, Textile would be smart enough for the valign at the start of a row to apply to each of the <td>
elements, but it’s not.
Alex
Offline
Re: ^. table row valign doesn't work...
What you can do is give the table a class, and target the table cells within that class.
Something like :
table.MyClass tr td {vertical-align:top;}
Offline
#5 2006-01-20 18:20:25
- barnettgs
- Member
- Registered: 2005-09-20
- Posts: 23
Re: ^. table row valign doesn't work...
Thanks, I shall use class then, not sure if it is correct way to use:
<code>
{class=“MyClass”}. |this|is|a|row|
</code>
Cheers
Offline
Pages: 1