Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use this code for horizontal menu, but I need to create multilevel from this menu
Here is the css code
CSS
body
{
}

.ss {
    padding:30px;
       text-align:center;
    margin-left:auto; margin-right:auto;
    border-style:solid; border-width:40px; border-color:gray;
    width:500px;
    background-color:azure;
    -webkit-border-top-right-radius: 40px;
-webkit-border-bottom-left-radius: 40px;
-moz-border-radius-topright: 40px;
-moz-border-radius-bottomleft: 40px;
border-top-right-radius: 40px;
border-bottom-left-radius: 40px;


}

#centre {
border:1px solid #202020;
border-bottom:0;
border-top:0;
color:#000;
padding:1.5em;
}

#conteneur {
background-color:#fafafa;
margin:1em 10%;
min-width:60em;
position:absolute;
width:90%;
	top: 15px;
	left: -53px;
}

#haut {
background-color:#202020;
height:2.4em;
max-height:2.4em;
}

#header {
background-color:#3882C7;
border:1px solid #fafafa;
color:#fafafa;
font-size:2em;
height:2.5em;
padding-left:2em;
padding-top:1em;
}

#pied {
border:1px solid #202020;
border-top:0;
padding:0.5em;
text-align:right;
}

.menuhaut {
font-size:1em;
list-style-type:none;
margin:0;
padding:0;
}

.menuhaut a {
color:#fafafa;
margin:0 0.4em;
text-decoration:none;
}

.menuhaut a:hover {
color:#FF0;
text-decoration:none;
}

.menuhaut li {
border-right:1px solid #fff;
display:inline;
float:left;
margin:0;
padding:0.6em 10px;
}





a {
color:#000;
text-decoration:underline;
}

body {
background-color:#CDCDCD;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:0.75em;
}

h1 {
font-size:1.6em;
margin:0.5em 0.5em 1em 0;
}

h2 {
font-size:1.2em;
margin:0.8em 0.5em 0.3em 0.6em;
}

h3 {
font-size:1.1em;
margin:0.8em 0.5em 0.3em 0.8em;
}

h4 {
font-size:1em;
margin:0.7em 0.5em 0.3em 1em;
}

h5 {
font-size:0.9em;
margin:0.6em 0.5em 0.2em 1.5em;
}

p {
margin:1px 0.5em 0.5em 1.5em;
}


and i use it with asp.net(vb) as follow
VB
<link rel="stylesheet" href="styles.css" />
	    <style type="text/css">
            .style1
            {
                color: #FFFFFF;
            }
           
        </style>
	</head>
	<body>
	<div id="conteneur">
		  <div id="header">Registration</div>
		  
		  <div id="haut">
			<ul class="menuhaut">
				<li class="style1"><a href ="home.aspx">Home</a></li>

           <li class="style1">School</li>
			
                    

    <li class="style1"><a href="classes.aspx">Classes</a></li>
     <li class="style1"><a href="extrap.aspx">Extra Programs</a></li>
                	




                <li class="style1"><a href="s1.aspx">Students</a></li>
                <li class="style2"><a href="searsh.aspx">Search</a></li>
              
				
				<li class="style1"><a href="invoicep.aspx">Invoices</a></li>
				<li class="style1"><a href="reports.aspx">Reports</a></li>
				
                <li class="style1">Users</li>

			</ul>
		  </div>


for example I need sub menu under student(current student-new student)
how can i do this?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900