Created
May 27, 2019 16:03
-
-
Save emilyriederer/623b3e1934f935f8b030bdb7e1e55783 to your computer and use it in GitHub Desktop.
Simple CSS to emphasize the last item in a list. Potentially useful for xaringan slides.
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> | |
<body> | |
<style> | |
li { | |
color: gray; | |
} | |
.last-highlight>li:last-of-type { | |
color: black; | |
} | |
</style> | |
<body> | |
<ul class = 'last-highlight'> | |
<li> item 1 </li> | |
<li> item 2 </li> | |
<li> item 3 </li> | |
</ul> | |
<ul> | |
<li> item 1 </li> | |
<li> item 2 </li> | |
<li> item 3 </li> | |
</ul> | |
</body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment