Last active
May 24, 2017 13:29
-
-
Save sscovil/dd3bf177b62152da71229da0ff70d9a1 to your computer and use it in GitHub Desktop.
CSS Exercise: What will the output look like, based on the CSS? By only editing custom.css, change the color of "Item 1" to purple.
This file contains hidden or 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
/* Add custom CSS rules here */ |
This file contains hidden or 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> | |
<head> | |
<link href="style.css" rel="stylesheet"> | |
<link href="custom.css" rel="stylesheet"> | |
</head> | |
<body> | |
<section class="container"> | |
<ul> | |
<li>Item 1</li> | |
<li>Item 2</li> | |
<li> | |
Item 3 | |
<ol> | |
<li>Sub Item 1</li> | |
<li>Sub Item 2</li> | |
<li>Sub Item 3</li> | |
</ol> | |
</li> | |
</ul> | |
</section> | |
</body> | |
</html> |
This file contains hidden or 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
ol > li { | |
color: red; | |
} | |
li li { | |
color: green; | |
} | |
li { | |
color: blue; | |
} | |
.container { | |
border: 1px solid red; | |
} | |
section { | |
border: 1px solid green; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment