Defines a button class:
HTML:
<div id="nav">
<ul>
<li><div class="button"><a href="index.html">home</a></div></li>
<li><div class="button"><a href="resume.html">resume</a></div><li>
<li><div class="button"><a href="projects.html">projects</a></div></li>
<li><div class="button"><a href="about.html">about</a></div></li>
</ul>
</div><!--end of nav-->
CSS:
#nav ul {
padding: 2px 0px 0px 0px;
margin: 0px;
}
#nav ul li {
display: inline;
border-right: 1px solid rgba(100,100,100,0.2);
}
#nav ul li:last-child {
border-right: none;
}
.button {
display: inline;
}
.button a {
font: 15px Sensation_Regular;
padding: 2px 10px 2px 10px;
color: rgba(253,238,225,0.7);
-moz-border-top-left-radius: 5px;
border-top-left-radius: 5px;
-moz-border-bottom-right-radius: 5px;
border-bottom-right-radius: 5px;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.button:hover a{
text-decoration: none;
color: rgba(253,238,225,1);
background: rgba(0,0,0,0.5);
}
Or define button inside #nav:
HTML:
<div id="nav">
<ul>
<li><a href="index.html">home</a></li>
<li><a href="resume.html">resume</a></li>
<li><a href="projects.html">projects</a></li>
<li><a href="about.html">about</a></li>
</ul>
</div><!--end of nav-->
CSS:
#nav {
position: absolute;
bottom: 0px;
width: 780px;
text-align: right;
padding: 2px 0px 2px 0px;
border: 10px solid rgba(0,0,0,0.1);
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
#nav ul {
margin: 0px 40px 0px 0px;
font-size: 0px
}
#nav ul li {
display: inline;
font: 15px Sensation_Regular, sans-serif;
border-right: 1px solid rgba(100,100,100,0.2);
}
#nav ul li:last-child {
border-right: none;
}
#nav ul li a{
padding: 2px 10px 2px 10px;
color: rgba(253,238,225,0.7);
-moz-border-top-left-radius: 5px;
border-top-left-radius: 5px;
-moz-border-bottom-right-radius: 5px;
border-bottom-right-radius: 5px;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
#nav ul li a:hover{
text-decoration: none;
color: rgba(253,238,225,1);
background: rgba(0,0,0,0.5);
}
Thanks.
This post has been edited by carnivroar: 12 August 2012 - 11:15 PM

New Topic/Question
Reply


MultiQuote







|