Skip to content

Instantly share code, notes, and snippets.

@paulfryzel
Created February 17, 2012 17:02
Show Gist options
  • Save paulfryzel/1854375 to your computer and use it in GitHub Desktop.
Save paulfryzel/1854375 to your computer and use it in GitHub Desktop.
Center ul within div
#foo {
text-align: center;
ul {
display: inline-block;
list-style: none;
margin: 0 auto
width: 100%;
}
li {
background: url('/images/foo.png');
border: 1px solid #ddd;
float: left;
position: relative;
text-align: left;
width: 200px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment