W3C home > Mailing lists > Public > www-xsl-fo@w3.org > May 2015

Re: more advanced table column aligning

From: David Arakelian <david@theatons.com>
Date: Tue, 13 May 2008 10:07:56 +0100
To: www-xsl-fo@w3.org
Message-Id: <1210669671.6942.22.camel@dhopkins-laptop>
Hi. I'm not 100% sure what you are trying to achieve without code
samples. However this may help. You can do something like this:

<table>
	<thead>
		<tr>
			<td>Price</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>10</td>
		</tr>
	</tbody>
</table>

Now can apply style to thead to make them centre aligned:

thead td { text-align:center; }
tbody td { test-align: right; }

-- 
      ,'/:.          David Arakelian 
    ,'-/::::.        http://www.theatons.com/
  ,'--/::(@)::.      Web Security Consultant
,'---/::::::::::.    Wales
____/:::::::::::::.  
  T H E A T O N S  
Received on Saturday, 30 May 2015 04:00:53 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 30 May 2015 04:00:53 UTC