Created
September 9, 2013 02:49
-
-
Save owlsky/6490955 to your computer and use it in GitHub Desktop.
A Pen by owlsky.
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
<div class="container"> | |
<ul class="menu"> | |
<li><a href="">home</a></li> | |
<li><a href="">about</a></li> | |
<li><a href="">works</a></li> | |
<li><a href="">contact</a></li> | |
</ul> | |
</div> |
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
/* reset */ | |
ul { | |
margin: 0; | |
padding: 0; | |
list-style: none; | |
} | |
/* style */ | |
.container { | |
border: 1px solid #ddd; | |
overflow: hidden; | |
padding: 10px 0; | |
} | |
.menu { | |
position: relative; | |
float: left; | |
left: 50%; | |
} | |
.menu li { | |
position: relative; | |
float: left; | |
right: 50%; | |
margin: 0 10px; | |
} | |
.menu li a { | |
text-transform: uppercase; | |
text-decoration: none; | |
padding: 0 10px; | |
background-color: #eaeaea; | |
color: #222; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment