Jump to content

Align In <col> Doesn't Seem To Work


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...