Skip to content

Instantly share code, notes, and snippets.

@danielpietzsch
Created April 19, 2010 04:35
Show Gist options
  • Save danielpietzsch/370754 to your computer and use it in GitHub Desktop.
Save danielpietzsch/370754 to your computer and use it in GitHub Desktop.
How to align a HTML table inside a div
/* Align a table right inside a div element */
/* Adjust accordingly for centering the table */
div.contains_table {
text-align: right;
}
div.contains_table table {
margin-right: 0;
margin-left: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment