Copy paste the below code in a New HTML Page. Make changes as required.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
body
{
font-family:tahoma;
font-size:10px;
}
.menu ul
{
list-style-type:none;
padding:0;
margin:0;
}
/* make the top level links horizontal and position relative so that we can position the sub level */
.menu li
{
float:left;
position:relative;
z-index:100;
}
/* use the table to position the dropdown list */
.menu table
{
position:absolute;
border-collapse:collapse;
z-index:80;
left:-1px;
top:25px;
}
/* style all the links */
.menu a, .menu :visited
{
display:block;
font-size:10px;
width:149px;
padding:7px 0;
color:#000;
background: #EDEDED;
text-decoration:none;
margin-right:1px;
text-align:center;
}
/* style the links hover */
.menu :hover
{
color:#FFFFFF;
background: #FF7700;
}
/* hide the sub level links */
.menu ul ul
{
visibility:hidden;
position:absolute;
width:149px;
height:0;
}
/* make the sub level visible on hover list or link */
.menu ul li:hover ul,
.menu ul a:hover ul
{
visibility:visible;
}
.backwards
{
unicode-bidi:bidi-override;
direction: rtl;
color:#FF6600;
font-size:11px;
text-align:left;
}
</style>
</HEAD>
<body>
<H4>CSS Menu</H4>
<div class="menu">
<ul>
<li><a href="index.html">DEMOS<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="zero_dollars.html" title="The zero dollar ads page">Zero Dollars</a></li>
<li><a href="embed.html" title="Wrapping text around images">Wrapping Text</a></li>
<li><a href="form.html" title="Styling forms">Styled Form</a></li>
<li><a href="nodots.html" title="Removing active/focus borders">Active Focus</a></li>
<li><a href="shadow_boxing.html" title="Multi-position drop shadow">Shadow Boxing</a></li>
<li><a href="old_master.html" title="Image Map for detailed information">Image Map</a></li>
<li><a href="bodies.html" title="fun with background images">Fun Backgrounds</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="index.html">MENUS<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="spies.html" title="a coded list of spies">Spies Menu</a></li>
<li><a href="vertical.html" title="a horizontal vertical menu">Vertical Menu</a></li>
<li><a href="expand.html" title="an enlarging unordered list">Enlarging List</a></li>
<li><a href="enlarge.html" title="an unordered list with link images">Link Images</a></li>
<li><a href="cross.html" title="non-rectangular links">Non-rectangular</a></li>
<li><a href="jigsaw.html" title="jigsaw links">Jigsaw Links</a></li>
<li><a href="circles.html" title="circular links">Circular Links</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="index.html">LAYOUTS<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="bodyfix.html" title="Cross browser fixed layout">Fixed 1</a></li>
<li><a href="body2.html" title="Cross browser fixed layout">Fixed 2</a></li>
<li><a href="body4.html" title="Cross browser fixed layout">Fixed 3</a></li>
<li><a href="body5.html" title="Cross browser fixed layout">Fixed 4</a></li>
<li><a href="minimum.html" title="A simple minimum width layout">Minimum Width</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="../boxes/index.html">BOXES<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="spies.html" title="a coded list of spies">Spies Menu</a></li>
<li><a href="vertical.html" title="a horizontal vertical menu">Vertical Menu</a></li>
<li><a href="expand.html" title="an enlarging unordered list">Enlarging List</a></li>
<li><a href="enlarge.html" title="an unordered list with link images">Link Images</a></li>
<li><a href="cross.html" title="non-rectangular links">Non-rectangular</a></li>
<li><a href="jigsaw.html" title="jigsaw links">Jigsaw Links</a></li>
<li><a href="circles.html" title="circular links">Circular Links</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="index.html">MOZILLA<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="dropdown.html" title="A drop down menu">Drop Down Menu</a></li>
<li><a href="cascade.html" title="A cascading menu">Cascading Menu</a></li>
<li><a href="content.html" title="Using content:">Content:</a></li>
<li><a href="moxbox.html" title=":hover applied to a div">Mozzie Box</a></li>
<li><a href="rainbow.html" title="I can build a rainbow">Rainbow Box</a></li>
<li><a href="snooker.html" title="Snooker cue">Snooker Cue</a></li>
<li><a href="target.html" title="Target Practise">Target Practise</a></li>
<li><a href="splittext.html" title="Two tone headings">Two Tone Headings</a></li>
<li><a href="shadow_text.html" title="Shadow text">Shadow Text</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
</div>
Sunday, May 24, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment