Skip to content

Instantly share code, notes, and snippets.

@azs06
Created November 27, 2013 13:04
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 azs06/7675301 to your computer and use it in GitHub Desktop.
Save azs06/7675301 to your computer and use it in GitHub Desktop.
Make an element center in CSS
/*Best way to make any element center in CSS is using text-alignment with float and a widht.
Example*/
.logo-div {
float: left;
text-align: center;
width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment