How to center an HTML table with CSS

How to center an HTML table with CSS

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.

Comments are closed.
%d bloggers like this: