Jump to content

Align In <col> Doesn't Seem To Work


nigel.collier@virgin.net

Recommended Posts

I'm trying to create a table with different alignments on each column in XHTML, but the alignment doesn't seem to work in IE8 (haven't tried others yet). I've just tried the code from the W3C Schools tutorial example and that doesn't work either. What am I missing?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Title of the document</title></head><body><table width="100%" border="1">  <col align="left" />  <col align="center" />  <col align="right" />  <tr>	<th>ISBN</th>	<th>Title</th>	<th>Price</th>  </tr>  <tr>	<td>3476896</td>	<td>My first HTML</td>	<td>$53</td>  </tr></table></body></html>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...