startv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource
via CSS Lint

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource
via JS Hint

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Want a Run Button?

If active, the preview will update automatically when you change code.

HTML

            
                <div id="header"> 
<div class="navigation">
    <ul>
		<li class="home">
			<a href="#home" class="a-nav">
				<span><img src="https://dl.dropbox.com/u/66278364/home.png"></span>
				<span>Home</span>
			</a>
		</li>
		<li class="work">
			<a href="#work" class="a-nav">
				<span><img src="https://dl.dropbox.com/u/66278364/home.png"></span>
				<span>Work</span>
			</a>
		</li>
		<li class="about">
			<a href="#about" class="a-nav">
				<span><img src="https://dl.dropbox.com/u/66278364/home.png"></span>
				<span>About</span>
			</a>
		</li>
		<li class="home">
			<a href="#home" class="a-nav">
				<span><img src="https://dl.dropbox.com/u/66278364/home.png"></span>
				<span>Home</span>
			</a>
		</li>
	</ul>
</div>
  </div>
            
          
!

CSS

            
              /* 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 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
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: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a {
	margin: 0;
	padding: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
	text-decoration: none;
}
img {
	border: none;
}
hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #cccccc;
	margin: 1em 0;
	padding: 0;
}
/* End of reset */

*, ::after, ::before {
	box-sizing: border-box; *behavior: url(scripts/boxsizing.htc);
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}

#header {
	background: #bada55;
	width: 100%;
  overflow: hidden;
	padding: 20px 0;
	position: absolute;
}

.navigation {
  float: left;
  left: 50%;
	margin: auto;
	position: relative;
}

.navigation ul {
  float: left;
  left: -50%;
  position: relative;
}

.navigation li {
  float: left;
}

.a-nav {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	display: block;
	position: relative;
	margin: 0px 10px;

	-webkit-transition: all .2s linear;
	-moz-transition: all .2s linear;
	-o-transition: all .2s linear;
	-ms-transition: all .2s linear;
	transition: all .2s linear;
}

.a-nav span {
	display: table-cell;
	width: 100px;
	height: 100px;
	text-align: center;
	vertical-align: middle;

	-webkit-transition: all 0.3s linear;
	-moz-transition: all 0.3s linear;
	-o-transition: all 0.3s linear;
	-ms-transition: all 0.3s linear;
	transition: all 0.3s linear;
}

.a-nav span:nth-child(2) {
	position: absolute;
	top: 0px;
	left: 0px;
	padding-top: 40px;
	font-size: 20px;
	line-height: 20px;
	color: #fff;
	text-transform: none;
	font-family: 'Lato';
	font-weight: 300;
	text-shadow: 1px 1px 10px #000;

	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	opacity: 0;
}

.home .a-nav {
	background: rgba(255,255,255,1);  /**box-shadow:  0 0 0 0 rgba(200, 95, 66, 0.4) inset, 0 0 0 2px rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.1);**/
	  
}

.home .a-nav:hover {
	background: rgba(255,255,255,0.5); /** box-shadow:  0 0 0 0 rgba(200, 95, 66, 0.4) inset, 0 0 0 2px rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.1);**/
}

.work .a-nav {
	background: rgba(213,3,67,1);
}

.work .a-nav:hover {
	background: rgba(213,3,67,0.75);
}

.about .a-nav {
	background: rgba(234,184,1,1);
}

.about .a-nav:hover {
	background: rgba(234,184,1,0.75);
}

.services .a-nav {
	background: rgba(0,165,226,1);
}

.services .a-nav:hover {
	background: rgba(0,165,226,0.75);
}

.contact .a-nav:hover {
	background: rgba(100,0,224,1);
}

.contact .a-nav:hover {
	background: rgba(100,0,224,0.75);
}

.a-nav:hover span:nth-child(2) {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	opacity: 1;
}

.a-nav:hover span:nth-child(1) {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	opacity: 0;

	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-o-transform: scale(0);
	-ms-transform: scale(0);
	transform: scale(0);
}

.a-nav:active {
	-webkit-box-shadow: 0 0 5px 4px rgba(0,0,0,0.2) inset,0 0 0 8px #fff inset,0 0 5px 10px rgba(0,0,0,0.2) inset,0 0 0 6px #fff,0 2px 8px 8px rgba(0,0,0,0.2);
	box-shadow: 0 0 5px 4px rgba(0,0,0,0.2) inset,0 0 0 8px #fff inset,0 0 5px 10px rgba(0,0,0,0.2) inset,0 0 0 6px #fff,0 2px 8px 8px rgba(0,0,0,0.2);
	/*box-shadow: inner shadow,inner white ring,inner inner shadow,outer white ring,outer shadow*/
}
            
          
!

JS

            
              
            
          
!
999px
Loading ..................

Console