Cod-nes Posted June 15, 2009 Report 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 Report 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 Report 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 Report Share Posted June 17, 2009 (edited) HTML <table id="myTable"> <tr> <th>Heading Cell</th> <td>Data Cell</th> </tr></table> CSS #myTable{ margin: 0 auto;} Edited June 17, 2009 by Sckewi Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now