Big Phat Button Nav
One big button made up of a bunch of smaller buttons. Realistic "pressing" using all CSS3 box shadows and transitions. Responsively designed for mobile. Intended for use as a <nav>.
by josiahsavary
HTML
<link href='http://fonts.googleapis.com/css?family=Sniglet:800&v1' rel='stylesheet' type='text/css'>
<h1>Big Phat Button Nav</h1>
<nav>
<ul>
<li><a href="#">Services</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Support</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
CSS
/* Basic Styling */
body {
background: #b9daff;
font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: .9em;
font-weight: normal;
-webkit-font-smoothing: antialiased; /* Fix for webkit rendering */
-webkit-text-size-adjust: none;
}
h1 {
margin: 25px 0 0 0;
font-family: 'Sniglet', arial, serif;
font-size: 2.3em;
font-weight: bold;
text-align: center;
text-transform: uppercase;
color: #edebe4;
text-shadow: 0 2px 3px rgba(0,0,0,.7);
}
/* Center the Nav (optional of course) */
nav {
width: 483px; /* <ul> width + padding */
margin: 0 auto;
}
/* */
nav ul {
margin:20px 0 0 0;
float:right;
width:auto;
height:50px;
-moz-border-radius:12px;
-webkit-border-radius:12px;
-o-border-radius:12px;
-ms-border-radius:12px;
border-radius:12px;
padding:4px 4px 1px 4px;
background:#edebe4;
}
nav ul li {
width:95px;
height:auto;
float:left;
-moz-border-radius:5px;
-webkit-border-radius:5px;
-o-border-radius:5px;
-ms-border-radius:5px;
border-radius:5px;
}
/* Give the first and last child a larger border radius */
nav ul li:first-child a {
-webkit-border-top-left-radius:10px;
-webkit-border-bottom-left-radius:10px;
-moz-border-radius-topleft:10px;
-moz-border-radius-bottomleft:10px;
-o-border-radius-topleft:10px;
-o-border-radius-bottomleft:10px;
border-top-left-radius:10px;
border-bottom-left-radius:10px;
}
nav ul li:last-child a {
-webkit-border-top-right-radius:10px;
-webkit-border-bottom-right-radius:10px;
-moz-border-radius-topright:10px;
-moz-border-radius-bottomright:10px;
-o-border-radius-topright:10px;
-o-border-radius-bottomright:10px;
border-top-right-radius:10px;
border-bottom-right-radius:10px;
}
/* Oh hey! Now it looks like a button :D */
nav ul li a {
width:100%;
height:100%;
display:block;
text-align:center;
...