Simple Drop down css menu

CSS is one of the branches of web designing, CSS stands for cascading style sheet. CSS menu making refers to the management and handling of website in most efficient manner. It is a part of web designing which incorporates steps and processes to how to make your website more attractive by adding new css menu styles to it. Here we are writing or making basic and simple css drop down menu.

HTML CODE HERE

<html>
<head>
<title>Simple Drop down css menu - phpkida</title>

</head>

<body>
<div class="main_menu">
<ul id="menu1">
<li id="sub"><a href="#">Home</a></li>
<li id="sub"><a href="#">About Us</a></li>
<li id="sub"><a href="#">Our Services</a>
<ul>
<li id="sub"><a href="#">PHP Development</a></li>
<li id="sub"><a href="#">Wordpress Development</a></li>
<li id="sub"><a href="#">Joomla Development</a></li>
<li id="sub"><a href="#">Web Designing</a></li>
<li id="sub"><a href="#">Logo Design</a></li>

</ul>
</li>

<li id="sub"><a href="#">Our Blog</a>
<ul>
<li id="sub"><a href="http://www.phpkida.com/category/html-tutorials/" target="_blank">HTML Tutorials</a></li>
<li id="sub"><a href="http://www.phpkida.com/category/css-tutorials/">CSS Tutorials</a></li>
<li id="sub"><a href="http://www.phpkida.com/category/css-tutorials/">CSS3 Tutorials</a></li>
<li id="sub"><a href="http://www.phpkida.com/category/java-script/">JavaScript Tutorials</a></li>
<li id="sub"><a href="http://www.phpkida.com/category/php-tutorial/">PHP Tutorials</a></li>
<li id="sub"><a href="http://www.phpkida.com/category/mysql-tutorials/">MYSQL Tutorials</a></li>
</ul>
</li>

<li id="sub"><a href="#">Our Gallary</a></li>
<li id="sub"><a href="#">Contact Us</a></li>

</ul>
</div>
</body>
</html>

CSS CODE HERE

<style type="text/css">
.main_menu
{
height:40px;
line-height:40px;
color:#FFF;
position:relative;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
margin:0 auto;
width:auto;
}
.main_menu ul
{
padding:0px;
margin:0;
list-style:none;
}
.main_menu ul li
{
padding:0;
margin:0;
border-right:1px solid #000000;
float:left;
background:#006666;
color:#FFFFFF;
}
.main_menu ul li a
{
color:#FFFFFF;
display:block;
text-decoration:none;
padding:0 25px;
}
.main_menu ul li a:hover
{
background:#009966;
color:#FFF;
}
.main_menu ul li ul
{
display: none;
width: auto;
position:absolute;
top:38px;
padding:0px;
margin:0px;
}
.main_menu ul li:hover ul
{
display: block;
position: absolute;
margin: 0;
padding: 0;
transition:5s all ease-out;
}
.main_menu ul li:hover li
{
float: none;
list-style:none;
margin:0px;
}
.main_menu ul li:hover li
{
background:#009966;
border-top:1px solid #000000;
}
.main_menu ul li:hover li a
{
color: #fff;
padding:0 20px;
display:block;
width:170px;
}
.main_menu ul li li a:hover
{
color:#000;
}
</style>

Click on Image and download Source Code of This Tutorial

Download source code of Simple Drop down css menu

I hope you like this tutorial. Share with your friends.

Leave a Reply

Related Posts: You may like

Rotating Words with CSS Animations

Pure CSS Loader and spinners animation

Pure css drop down menu

Pure css dropdown navigation bar

PHPKIDA Offering Free Tools:

INSTA DOWNLOADER

Download Instagram Videos & Photos.

Download Now

CURRENCY CONVERTER

Real Time Currency Converter

Convert Now

ROBOST.TXT GEN.

Robots.txt File Creater

Create Now

HTML MINIFIER

Compress yout HTML Code

Minify Now

CSS MINIFIER

Compress yout CSS Code

Minify Now

JAVASCRIPT MINIFIER

Compress yout JavaScript Code

Minify Now

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.