Created
April 19, 2010 04:35
-
-
Save danielpietzsch/370754 to your computer and use it in GitHub Desktop.
How to align a HTML table inside a div
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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