Skip to content

Instantly share code, notes, and snippets.

@starzonmyarmz
Created December 1, 2011 17:38
Show Gist options
  • Save starzonmyarmz/1418461 to your computer and use it in GitHub Desktop.
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
<!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