This code:
<table border="1">
<tr>
<th>a</th>
<th>b</th>
<th>c</th>
<th>d</th>
</tr>
</table>
http://jsfiddle.net/ca86D/
Generates:
a | b | c | d
How can I make it generate :
d | c | b | a
?
Without changing the order of the < th >
You can add
dir="rtl"attribute to table:Demo: http://jsfiddle.net/74XHk/1/
(tried to add it to
tr, that didn’t work)