Last active
April 5, 2017 17:49
-
-
Save adamsdenniskariuki/3d4b5f60e50661ab5fa243b7a072ab84 to your computer and use it in GitHub Desktop.
HTML and CSS Example
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
HTML: | |
<div id = “parent” > | |
All the content here is blue in color. | |
<div id = "child"> | |
I’m Red. | |
</div> | |
</div> | |
CSS: | |
<style type = "text/css"> | |
#parent{ | |
color: blue; | |
} | |
#child{ | |
color: red !important; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment