Skip to content

Instantly share code, notes, and snippets.

@jessebeach
Created March 16, 2011 02:48
Show Gist options
  • Save jessebeach/871918 to your computer and use it in GitHub Desktop.
Save jessebeach/871918 to your computer and use it in GitHub Desktop.
list with line between label and value
<!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