Cod-nes Posted June 15, 2009 Share Posted June 15, 2009 How can I do that now that align=center has been deprecated? Link to comment Share on other sites More sharing options...
smerny Posted June 15, 2009 Share Posted June 15, 2009 <table style="margin:0 auto;"> Link to comment Share on other sites More sharing options...
Ingolme Posted June 16, 2009 Share Posted June 16, 2009 It's better to keep all the CSS outside of the mark-up, otherwise it defeats the purpose, which is to separate content from presentation. Link to comment Share on other sites More sharing options...
sckewi Posted June 17, 2009 Share Posted June 17, 2009 HTML <table id="myTable"> <tr> <th>Heading Cell</th> <td>Data Cell</th> </tr></table> CSS #myTable{ margin: 0 auto;} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.