How to center an HTML table with CSS How to center an HTML table with CSS By Decaf | November 2, 2012 Because I seem to forget the code to center a table in CSS for some reason… table { margin-left: auto; margin-right: auto; } via Table centering using CSS or HTML: theodorakis.net. Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Tumblr (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading... Related