Mori Posted September 21, 2009 Report Share Posted September 21, 2009 Hi everyone,On the following reference, HTML learners are advised not to use table align attribute and use styles instead. But I don't know how to do it:http://www.w3schools.com/TAGS/tag_table.aspAny help is appreciated.RegardsMori Link to comment Share on other sites More sharing options...
dsonesuk Posted September 21, 2009 Report Share Posted September 21, 2009 <style type="text/css">#mytable{margin:0 auto;}</style><table width="800" border="1" cellspacing="0" cellpadding="0" id="mytable"> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr></table> 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