Created
December 1, 2011 17:38
-
-
Save starzonmyarmz/1418461 to your computer and use it in GitHub Desktop.
A solution for getting list bullets above the item - in response to http://dribbble.com/shots/337837-CSS-to-the-Rescue
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
<!doctype html> | |
<head> | |
<style> | |
body { | |
margin: 50px; | |
} | |
ol { | |
counter-reset: num; | |
list-style: none; | |
} | |
li { | |
float: left; | |
margin-right: 20px; | |
} | |
li:before { | |
display: block; | |
counter-increment: num; | |
content: counter(num, upper-roman); | |
} | |
</style> | |
</head> | |
<body> | |
<ol> | |
<li>Test one | |
<li>Test two | |
<li>Test three | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment