Welcome
We've been working hard

Pure css style sliding secondary navigation menu

today Henan SEO Let's share a simple slide down menu with pure handwriting CSS style.

<! doctype html>
<html>
<head>
<meta charset=”utf-8″>
<title>Untitled document</title>
<style>
a{text-decoration: none; color:#fff;}
ul li{list-style:none;}
.newnav{}
.newnav ul{}
.newnav ul li{float:left; background: red;width:100px;line-height: 50px;text-align: center;}

.newnav ul li ul li{background:#333; margin-left: -40px;}
#newnavul li{float:left; width:130px;text-align: center; line-height: 50px; display:none;}
#newnavul li a{display: block;}
.newnav ul li:hover #newnavul li{display: block;}
#newnavul li a:hover{background: #fff;color:blue;}
</style>

</head>

<body>
<div class=”newnav”>
<ul>
<li><a href="">Home page</a></li>
<li><a href="">About us</a></li>
<li>
<a href="">Course Introduction</a>
<ul id=”newnavul”>
<li><a href="">Introduction 1</a></li>
<li><a href="">Introduction 2</a></li>
<li><a href="">Introduction 3</a></li>
<li><a href="">Introduction 4</a></li>
</ul>
</li>
<li><a href="">Home page</a></li>
<li><a href="">News Center</a></li>
<li><a href="">Contact us</a></li>
</ul>
</div>
</body>
</html>

Like( zero ) Reward
Do not reprint without permission: New Start Blog » Pure css style sliding secondary navigation menu


Follow the public account "New Start Software Steward"

Get the latest network resources and cracking software!
Play with all kinds of software

comment Grab the sofa

You must log in before commenting!

 

Reward the author of the article if you think it is useful

Thank you very much for your reward, we will continue to give more high-quality content, let's create a better online world together!

Scan Alipay and reward

Scan WeChat and reward