css - Center <ul> <li> into div - Stack Overflow
it's not the current accepted answer that's good, it's this one:

<style type="text/css">
.wrapper {
text-align: center;
}
.wrapper ul {
display: inline-block;
margin: 0;
padding: 0;
/* For IE, the outcast */
zoom:1;
*display: inline;
}
.wrapper li {
float: left;
padding: 2px 5px;
border: 1px solid black;
}
</style>

<div class="wrapper">
<ul>
<li>Three</li>
<li>Blind</li>
<li>Mice</li>
</ul>
</div>
center  ul  list  html  css 
february 2015
« earlier      
1:1 a/b ajax analytics apache api apple apps architecture ascii asp.net authentication backup base64 bash beta blackjack blog boise branch browser build business button cache caching centos chair cheatsheet check chrome churn code color command command-line communication comparison configuration control converter copy cron css csv data database debug debugger debugging delphi design dev develoment development devtools display distributed documentation dom downloads dual dump ec2 editor education electronics email encryption explain file files firewall format formatter fundraising garden gardening ghin git golf google gradient handicap homebrew horizontal host hosting html http https idaho ie images import install interview interviewing intuit io ios iotop ipad iphone iscsi java javascript jquery js json keyboard kids ktm launchd lifetime line linode linux list localhost log log4j logging lookup ltv mac macbook management memcache memcached memcachedmanager memory merge mergeinfo mobile motorcycle mount mvc mysql nas number odata osx outlook parser password paste percona performance php powerpc process profiling programming push questions rails redis remote replication responsive rest revenue rss ruby rubymine saas samba san scalability scalable score screen screenshot screenshots sdk security sed server services shell shortcuts significance sinatra single software source spanish speed spring sql ssh ssl startup subversion svn sync template terminal test testing tips tomcat tools touch tunnel tutorial ui user value vc version video vmware wave wcf web webdev webkit website windows www xcode xml

Copy this bookmark:



description:


tags: