nigel.collier@virgin.net Posted November 16, 2009 Share Posted November 16, 2009 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 More sharing options...
jeffman Posted November 17, 2009 Share Posted November 17, 2009 Style support for <col> elements has always been flaky. You'd be better to create CSS classes and assign them to your <td> elements directly. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.