Skip to content

Instantly share code, notes, and snippets.

@IrvBriscoe
Created January 6, 2012 17:38
Show Gist options
  • Save IrvBriscoe/1571604 to your computer and use it in GitHub Desktop.
Save IrvBriscoe/1571604 to your computer and use it in GitHub Desktop.
HTML: Glossy css3 Navigation Buttons
/* CSS */
/*Eric Meyer’s “Reset CSS” 2.0 CSS Reset*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
body{ background-color: #eee; }
/*Navigation Buttons*/
#nav-buttons{
font-family: arial, sans-serif;
margin: 20px;
}
#nav-buttons li{
float: left;
margin-right: 10px;
}
#nav-buttons li a{
background-color: #aaa;
border: 1px solid #999;
color: #fff;
font-size: 11px;
font-weight: bold;
padding: 6px 10px 6px;
text-decoration: none;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
/*Red color*/
.red{
background: #FF9E9E;
background: -moz-linear-gradient(top, #FF9E9E 0%, #cc0000 5%, #AA0000 99%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FF9E9E), color-stop(4%,#cc0000), color-stop(99%,#AA0000));
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FF9E9E', endColorstr='#AA0000',GradientType=0 );
border: 1px solid #AA0000 !important;
}
/*Orange color*/
.orange{
background: #ee440c;
background: -moz-linear-gradient(top, #ffc1ad 0%, #ee440c 5%, #cb3a0a 99%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffc1ad), color-stop(4%,#ee440c), color-stop(99%,#cb3a0a));
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffc1ad', endColorstr='#cb3a0a',GradientType=0 );
border: 1px solid #AA0000 !important;
}
<!-- HTML -->
<ul id="nav-buttons">
<li><a href="#">Tour</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Support</a></li>
<li><a href="#" class="red">Sign Up</a></li>
<li><a href="#" class="orange">Login</a></li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment