Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add text alignment to WordPress themes when it is missing
/* This will add left, right & centre alignment to your theme
--------------------------------------------- */
.aligncenter, div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
.alignleft {
float: left;
.alignright {
float: right;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment