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

Your email address will not be published. Required fields are marked *

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

CSS Star Rating System Example Free Download

Simple Mobile Navigation Free Download

html5 video tag Complete Guide

How to get multiple selected values of select box in php

Pure css social media icons free download

CSS navigation bar with icons

PHPKIDA Offering Free Tools:

INSTA DOWNLOADER

Free online tool to download Instagram videos, photos and save Instagram videos, photos to your device. It's free & easy to use.

Download Now

CURRENCY CONVERTER

Our real time currency converter calculator will convert your money based on current values from around the world. It's free & easy to use.

Convert Now

ROBOST.TXT GEN.

Create robots txt file that help search engines to crawling and indexing your site with help of our free online Robots.txt Generator tool.

Create Now

HTML MINIFIER

Free online tool to minify or compress html code and reduce the size of html code in few clicks. It's free & easy to use.

Minify Now

CSS MINIFIER

Free online tool to minify or compress css code and reduce the size of css code in few clicks. It's free & easy to use.

Minify Now

JAVASCRIPT MINIFIER

Free online tool to minify or compress javascript code and reduce the size of javascript code in few clicks. It's free & easy to use.

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.