<! DOCTYPE html>
<meta charset= "Utf-8" >
<title></title>
<style>
*{
margin:0px;
padding:0px;
}
. nav{
width:500px;
height:46px;
Position:absolute;
top:0px;
left:0px;
z-index:900;
}
. nav-title{
width:100px;
max-height:46px;
Text-align:center;
line-height:46px;
Float:left;
Background-color: #018b3e;
font-size:20px;
Overflow:hidden;
transition:0.5s;
}
. nav-title:hover{
Background-color: #ff6b00;
Cursor:pointer;
max-height:500px;
}
. Nav-title ul{
List-style:none;
}
. Nav-title li{
background-color:red;
}
. Nav-title li:hover{
Cursor:pointer;
Background-color:rosybrown;
}
. content{
width:500px;
height:500px;
margin-top:46px;
Position:absolute;
Background-color:cornflowerblue;
}
</style>
<body>
<div class= "NAV" >
<div class= "Nav-title" >ff
<ul>
<li>div</li>
<li>span</li>
<li>img</li>
<li>pr</li>
<li>body</li>
</ul>
</div>
<div class= "Nav-title" >html
<ul>
<li>div</li>
<li>span</li>
</ul>
</div>
<div class= "Nav-title" >css
<ul>
<li>div</li>
<li>span</li>
<li>img</li>
</ul>
</div>
<div class= "Nav-title" >.net
<ul>
<li>div</li>
</ul>
</div>
<div class= "Nav-title" >javascript
<ul>
<li>div</li>
<li>span</li>
<li>img</li>
<li>pr</li>
</ul>
</div>
</div>
<div class= "Content" >
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
12334556667<br>
</div>
</body>
CSS: Drop-down Menu Template