Created
February 10, 2017 13:49
-
-
Save steveobbayi/5289a7969bc02549bcf1c2bdcc7d5d8d to your computer and use it in GitHub Desktop.
This file contains 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
<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