Skip to content

Instantly share code, notes, and snippets.

@sscovil
Last active May 24, 2017 13:29
Show Gist options
  • Save sscovil/dd3bf177b62152da71229da0ff70d9a1 to your computer and use it in GitHub Desktop.
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.
/* Add custom CSS rules here */
<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>
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