Created
March 16, 2011 02:48
-
-
Save jessebeach/871918 to your computer and use it in GitHub Desktop.
list with line between label and value
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Untitled</title> | |
<meta name="viewport" content="width=device-width" /> | |
<style type="text/css"> | |
li { | |
clear: left; | |
display: block; | |
float: left; | |
line-height: 2; | |
width: 100%; | |
} | |
li span:first-child { | |
border-right: 1px solid black; | |
clear: left; | |
float: left; | |
padding-left: 2%; | |
padding-right: 2%; | |
width: 2em; | |
} | |
li span + span { | |
padding-left: 2%; | |
} | |
</style> | |
</head> | |
<body> | |
<ul> | |
<li><span>2011</span><span>event text</span></li> | |
<li><span>2010</span><span>event text</span></li> | |
<li><span>2009</span><span>event text</span></li> | |
</ul> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment