# Menu

Open me!

Demo View | Source Code (opens new window) | Download all widgets

Assets:

Images:

    <!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" />		
    	<link href="style.css" rel="stylesheet" type="text/css" />
    	<title>Menu</title>	
    </head>
    <body>
    	<h1>Menu</h1>
    	
    	<ul class="menu"> 
    		<li><a class="has-child" href="#">Level A</a></li>
    		<li><a class="has-child" href="#">Level B</a></li>
    		<li><a class="has-child" href="#">Level C</a></li>
    		<li><a class="has-child" href="#">Level D</a></li>
    		<li><a class="has-child" href="#">Level E</a></li>
    		<li><a class="has-child" href="#">All</a></li>
    	</ul>	
    </body>
    </html>
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    body {
    	font-weight: bold;
    	font-size: 14px;
    	line-height: 45px;
    	font-family: Helvetica;
    }
    
    ul {
    	margin: 0;
    	padding: 0;
    	border: 2px solid #CCC;
    	border-radius: 15px;
    	width: 300px;
    	background-color: #666;
    	behavior: url(ie-css3.htc);
    }
    
    li {
    	list-style-type: none;
    	font-size: 14px;
    	color: #FFF;
    	padding: 5px 5px 5px 10px;
    	border-bottom: 1px solid #ccc;
    }
    
    li:last-child {
    	border-bottom: none;
    }
    
    .menu li:hover {
    	cursor: pointer;
    }	
    	
    .menu li:hover a.has-child {
    	background: url('../core/images/menu_arrow.png') center right no-repeat;
    }
    	
    .menu li a {
    	display: block;
    	width: 280px;
    }
    	
    .menu li:hover a {
    	color: #fff;
    	text-shadow: 0px 1px 0px #000;
    }
    	
    .has-child {
    	background: url('../core/images/menu_arrow.png') center right no-repeat;
    }
    
    a, a:visited, a:hover {
    	text-decoration: none;
    	color: #FFF;
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    // Make sure to add code blocks to your code group
    Last Updated: 3/1/2021, 8:30:51 AM