Skip to content

Instantly share code, notes, and snippets.

@steveobbayi
Created February 10, 2017 13:49
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 steveobbayi/5289a7969bc02549bcf1c2bdcc7d5d8d to your computer and use it in GitHub Desktop.
Save steveobbayi/5289a7969bc02549bcf1c2bdcc7d5d8d to your computer and use it in GitHub Desktop.
<style>
/* styles by tags*/
p {
text-align:center;
}
/* styles by class*/
.centerbyclass {
text-align:center;
}
/* styles by id*/
#centerbyid {
text-align:center;
}
</style>
<p>This text will be centered</p>
<p class="centerbyclass">This text will be centered</p>
<p id="centerbyid">This text will be centered</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment