Skip to content

Instantly share code, notes, and snippets.

@ninadingole
Created December 15, 2012 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninadingole/4297301 to your computer and use it in GitHub Desktop.
Save ninadingole/4297301 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
html{
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
.wrapper{
width:900px;
margin:0 auto;
}
nav{
position:relative;
}
nav ul{
list-style:none;
}
nav ul li{
display:inline;
position:relative;
margin-right:20px;
}
nav li ul{
position:absolute;
margin-top:10px;
top:10;
}
nav li:hover ul{
display:inline;
}
nav li ul li{
display:block;
float:none;
margin-top:10px;
}
<div class="wrapper">
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Blog</a>
<ul>
<li><a href="#">Tutorials</a></li>
<li><a href="#">Asp.net</a></li>
<li><a href="#">html</a></li>
<li><a href="#">Css</a></li>
</ul>
</li>
<li><a href="#">Contact</a></li>
<ul>
</nav>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment