Skip to content

Instantly share code, notes, and snippets.

@MikeRawlins
Created February 20, 2017 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeRawlins/a994e260319462ecb15c8fed5b1eb5c6 to your computer and use it in GitHub Desktop.
Save MikeRawlins/a994e260319462ecb15c8fed5b1eb5c6 to your computer and use it in GitHub Desktop.
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