-
-
Save yumyo/7ad4e14f9f2e233558f80c6fc32973b7 to your computer and use it in GitHub Desktop.
How to align a HTML table inside a div
This file contains hidden or 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