Level 3 css pop-up menu

Source: Internet
Author: User
Tags visibility
Tip: you can modify some code before running

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Dropline-Level 3 horizontal pop-up menu</title><style type="text/css">/* Common styling */. menu {font-family: arial, sans-serif; width: 749px; height: 30px; position: relative; margin: 0; font-size: 11px; margin: 50px 0; background: # fff; position: relative ;}. menu ul {padding: 0; margin: 0; list-style-type: none ;}. menu ul li {float: left; border-left: 1px solid # eee; width: Pixel ;}. menu ul li ,. menu ul li a: visited {display: block; float: left; width: 101px; text-decoration: none; padding: 0 0 0 5px; height: 30px; line-height: 30px; color: #000; background: # c9c9a7 url (.. /.. /graphics/drop.gif) bottom right no-repeat ;}. menu ul li ul {display: none;}/* specific to non IE browsers */. menu ul li: hover a {color: # fff; background: # b3ab79 ;}. menu ul li: hover ul {display: block; position: absolute; width: 749px; top: 30px; left: 0; background: # b3ab79; color: # fff ;}. menu ul li: hover ul. right_side li {float: right; border: 0; border-left: 1px solid # eee ;}. menu ul li: hover ul. left_side li {float: left; border: 0; border-left: 1px solid # eee ;}. menu ul li: hover ul li. hide {background: # bd8d5e url (.. /.. /graphics/drop2.gif) bottom right no-repeat; color: # fff ;}. menu ul li: hover. hide {background: # b3ab79; color: # fff ;}. menu ul li: hover ul li ul {display: none ;}. menu ul li: hover ul li a {display: block; background: # b3ab79; color: # fff ;}. menu ul li: hover ul li a: hover {background: # dfc184; color: #000 ;}. menu ul li: hover ul {display: block; position: absolute; left: 0; top: 30px; color: #000; background: # dfc184 ;}. menu ul li: hover ul. right li {float: right ;}. menu ul li: hover. hide {background: # dfc184; color: #000 ;}. menu ul li: hover ul li a {background: # dfc184; color: #000 ;}. menu ul li: hover ul li a: hover {background: # bd8d5e; color: # fff ;}</style><!--[if lte IE 6]><style type="text/css">table {border-collapse:collapse; margin:0; padding:0;}.menu ul li a.hide, .menu ul li a:visited.hide {display:none;}.menu ul li a:hover ul li a.hide {display:none;}.menu ul li a, .menu ul li a:visited {background:#c9c9a7 url(../../graphics/drop.gif) 20px right no-repeat;}.menu ul li a:hover {color:#fff; background:#b3ab79;}.menu ul li a:hover ul {display:block; position:absolute; width:749px; top:30px; left:0; background:#b3ab79; color:#fff;}.menu ul li a:hover ul.right_side li {float:right; border-width:0 1px 0 0 0;}.menu ul li a:hover ul.left_side li {float:left;}.menu ul li a:hover ul li a.sub {background:#bd8d5e url(../../graphics/drop2.gif) 20px right no-repeat; color:#fff;}.menu ul li a:hover ul li a {display:block; background:#b3ab79; color:#fff;}.menu ul li a:hover ul li a ul {visibility:hidden;}.menu ul li a:hover ul li a:hover {background:#dfc184; color:#000;}.menu ul li a:hover ul li a:hover ul {visibility:visible; position:absolute; left:0; top:30px; color:#000; background:#dfc184;}.menu ul li a:hover ul li a:hover ul li a {background:#dfc184; color:#000;}.menu ul li a:hover ul li a:hover ul li a:hover {background:#bd8d5e; color:#fff;}</style><![endif]--></head><body><div class="menu"><ul><li>DEMOS<!--[if lte IE 6]>DEMOS<table><tr><td><![endif]--> <ul> <li>Zero dollars</li> <li>Wrapping text</li> <li>Styled form</li> <li>Active focus</li> <li>HOVER/CLICK<!--[if lte IE 6]> <a class="sub" href="http://www.111cn.net/js_a/menu/hover_click.html" title="Hover/click with no active/focus borders">HOVER/CLICK <table><tr><td> <![endif]--> <ul class="right_side"> <li>Styled form</li> <li>Active focus</li> <li>Hover/click</li> </ul> <!--[if lte IE 6]> </td></tr></table> <![endif]--> </li> <li>Shadow boxing</li> <li>Image map</li> </ul><!--[if lte IE 6]></td></tr></table><![endif]--></li><li>MENUS<!--[if lte IE 6]>MENUS<table><tr><td><![endif]--> <ul> <li>Spies menu</li> <li>Vertical menu</li> <li>Enlarging list</li> <li>Link images</li> <li>Non-rectangular</li> <li>Jigsaw links</li> <li>Circular links</li> </ul><!--[if lte IE 6]></td></tr></table><![endif]--></li><li>LAYOUTS<!--[if lte IE 6]>LAYOUTS<table><tr><td><![endif]--> <ul> <li>Fixed 1</li> <li>Fixed 2</li> <li>Fixed 3</li> <li>Fixed 4</li> <li>Minimum width</li> </ul><!--[if lte IE 6]></td></tr></table><![endif]--></li><li>BOXES<!--[if lte IE 6]>BOXES<table><tr><td><![endif]--> <ul> <li>Spies menu</li> <li>Vertical menu</li> <li>Enlarging list</li> <li>Link images</li> <li>Non-rectangular</li> <li>Jigsaw links</li> <li>Circular links</li> </ul><!--[if lte IE 6]></td></tr></table><![endif]--></li><li>MOZILLA<!--[if lte IE 6]>MOZILLA<table><tr><td><![endif]--> <ul> <li>Drop down menu</li> <li>Cascading menu</li> <li>Content:</li> <li>Mozzie box</li> <li>Rainbow box</li> <li>Snooker cue</li> <li>Target practice</li> </ul><!--[if lte IE 6]></td></tr></table><![endif]--></li><li>EXPLORER<!--[if lte IE 6]>EXPLORER<table><tr><td><![endif]--> <ul class="right_side"> <li>Example one</li> <li>Weft fonts</li> <li>Vertical align</li> </ul><!--[if lte IE 6]></td></tr></table><![endif]--></li><li>OPACITY<!--[if lte IE 6]>OPACITY<table><tr><td><![endif]--> <ul class="right_side"> <li>Opaque colours</li> <li>Opaque menu</li> <li>Partial opacity</li> <li>Partial opacity II</li> <li>HOVER/CLICK<!--[if lte IE 6]> <a class="sub" href="http://www.111cn.net/js_a/menu/hover_click.html" title="Hover/click with no active/focus borders">HOVER/CLICK <table><tr><td> <![endif]--> <ul class="left_side"> <li>Styled form</li> <li>Active focus</li> <li>Hover/click</li> </ul> <!--[if lte IE 6]> </td></tr></table> <![endif]--> </li> </ul><!--[if lte IE 6]></td></tr></table><![endif]--></li></ul></div></body></html>
Tip: you can modify some code before running
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.