<!-- A Google Font, not necessary, but looks good -->
<link href='http://fonts.googleapis.com/css?family=Gudea' rel='stylesheet' type='text/css'>
<!-- #content to center the menu -->
<div id="content">
<!-- This is the actual menu -->
<ul id="darkmenu">
<li><a href="#">First Item</a></li>
<li><a href="#">Second Item</a></li>
<li><a href="#">Third Item</a></li>
</ul>
</div>
CSS
/* The body, gives an example how the background should look like */
body {
background: #063d4c;
-webkit-box-shadow: inset 0px 0px 150px 0px rgba(0, 0, 0, 0.8);
-moz-box-shadow: inset 0px 0px 150px 0px rgba(0, 0, 0, 0.8);
box-shadow: inset 0px 0px 150px 0px rgba(0, 0, 0, 0.8);
width: 100%;
height: 100%;
position: absolute;
margin: 0;
}
/* These create the flashes */
@-webkit-keyframes hover {
0% { background: #bdedfa }
100% { background: #063d4c }
}
@-moz-keyframes hover {
0% { background: #bdedfa }
100% { background: #063d4c }
}
@-ms-keyframes hover {
0% { background: #bdedfa }
100% { background: #063d4c }
}
@-o-keyframes hover {
0% { background: #bdedfa }
100% { background: #063d4c }
}
@keyframes hover {
0% { background: #bdedfa }
100% { background: #063d4c }
}
/* Again, #content is only there to center the menu */
#content {
text-align: center;
width: 100%;
height: 100%;}
/* Here you go: This is what you need to get this menu */
ul#darkmenu {
margin-top: 3%; /* Well, you don't need this... */
display: inline-block; /* ... and this, this just centers the menu. */
list-style: none;
font-family: 'Gudea', sans-serif; /* Change this to use another font */
-webkit-transition: all 0.2s linear;
-moz-transition: all 0.2s linear;
-ms-transition: all 0.2s linear;
-o-transition: all 0.2s linear;
transition: all 0.2s linear;
}
ul#darkmenu li {
-webkit-transition: -webkit-box-shadow, background 0.2s linear;
-moz-transition: -moz-box-shadow, background 0.2s linear;
-ms-transition: -moz-box-shadow, background 0.2s linear;
-o-transition: -o-box-shadow, background 0.2s linear;
transition: box-shadow, background 0.2s linear;
background: #565656;
float: left;
text-shadow: 0px -1px 0px black;
font-size: 13px;
text-transform: uppercase;
-webkit-box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.1), 0px...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.