Table header alignment doesn't match table row alignment

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Table header alignment doesn't match table row alignment

markb
When I create a table and specify that a column is center-aligned, the header remains left-aligned. This misalignment doesn't look pretty. Is this the expected behavior? Is there a workaround?

Example code for the table: [cols="2,^1,2", options="header"]

The middle column is center-aligned.

Thanks,

Mark
Reply | Threaded
Open this post in threaded view
|

Re: Table header alignment doesn't match table row alignment

danyill
Does this do what you expect?

[cols="2,^1,2", options="header"] 
|===
|a
|b
|c
|d
|e
|f

|1
|2
|3
|4
|5
|6
|===



The header alignment seems fine to me.
Reply | Threaded
Open this post in threaded view
|

Re: Table header alignment doesn't match table row alignment

markb
Thanks for replying. I tested your example in a plain file and it works. I think it must be a problem with my CSS. I'll have to look into it.
Best,
Mark