dropdown menu using css | Sanwebcorner

dropdown menu using css

Dropdown menu using css:

dropdown menu usign css

index.php:


<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Drop-down menu using css</title>
<link rel="stylesheet" href="san.css" type="text/css">
</head>

<body>

<ul id="sanmenu">
<li><a href="">Home</a></li>
<li><a href="">Profile</a>
<ul><li><a href="">about1</a></li>
<li><a href="">about2</a></li>
<li><a href="">about3</a></li>
<li><a href="">about4</a></li>
</ul>

</li>
<li><a href="">Products</a></li>
<li><a href="">Gallery</a></li>
<li><a href="">contacts</a></li>
<li><a href="">linkbuild</a></li>
</ul>
</body>
</html>

san.css

@charset "utf-8";


#sanmenu ul {
    list-style: none;
 position: absolute;
    display: none;
z-index: 999;
}

#sanmenu > li {
    float: left;
}
#sanmenu li a {
display: block;
    height: 3em;
    line-height:3em;
    padding: 0 1.4em;
    text-decoration: none;
}

#sanmenu ul li a {
    width: 80px;
}
#sanmenu li:hover ul {
    display: block;
}
#sanmenu {
    font-family: Arial;
    font-size: 14px;
    background:#993300;
width:1160px;
float: left;
list-style: none;
}
#sanmenu > li > a {
    color: #fff;
    font-weight: bold;
}
#sanmenu > li:hover > a {
    background: #f09d28;
    color: #000;
}

/* Submenu
------------------------------------------*/
#sanmenu ul {
    background: #f09d28;
}
#sanmenu ul li a {
    color: #000;
width:120px;
}
#sanmenu ul li:hover a {
    background: #ffc97c;
background:#FFFF00
}
/* CSS Document */


Post a Comment

Labels

360 degree view product image 3d rotate 3d text 3step-form Accordion menu ajax All Browsers Animated Background Gradient animation audio controller auto complete Best accordion menu bootstrap border bounce effect on hover Breadcrumb calculate age by dob calendar Captcha change image on mouse move color chooser countdown Counter on scroll create random number Css css animation css buttons css hover css3 customized upload Button Date picker delete data from table Different scroll speed email otp verification email verifier Embed eventlist Expanding Menu feedbck form flash news section close button full screen menu Google custom search Google Maps Google reCAPTCHA Google site search gradient hide menu Horizontal News ticker Hover Htm Html html dropdown html form html5 html5 form validation Iframe image hover increment decrement textbox value based on select box Javascript Jquery js Layered image effect on mouse hover lock & unlock page scroll marquee marquee with close button mobile number validation mobile otp login Multi-level-drop-down-menu multi-level-form Multi-Step-form mysql News ticker on hover change text to image our team page password generator password strength checker Photoshop PHP populate html selectbox Popup image on click the link pure css Question type form random number generate Random password Redirect page Based on the select box while submit the form responsive responsive menu responsive popup box Responsive Vertical Time line design rotate image selectbox based on select box simple coming soon page simple countdown based on end date simple typing effect slider sliding tab sms otp login statistic counter on scroll switch tag shape team member Time picker toggle toggle view transparent button underline animation up down slide validation vertical fixed sidebar Webtips Youtube