Forum Moderators: not2easy
ul#topnav {
margin:0; padding: 0;
float: left;
height:35px;
width: 100%;
list-style: none;
position: relative;
font-size: 14px;
background:#000;
text-align:center;
top: 0px;
left: 0px;
}
ul#topnav li {
float: left;
margin: 0; padding: 0;
width:15.5%;
height:35px;
border-left: 1px solid #555;
top:0;
}
ul#topnav li a {
display: block;
padding-top:8px;
color: #f0f0f0;
text-decoration: none;
height:27px;
}
ul#topnav li a:hover {
font-weight:bold;
}
ul#topnav li:hover
{
height:35px;
background-color: Red;
}
ul#topnav li span
{
font-size:x-small;
padding-top:8px;
padding-bottom:8px;
float: left;
height:27px;
position:absolute;
display: none;
background-color: Red;
border-color:#637a59 #000 #000 #000 ;
border-style:solid;
border-width:0px;
color: #fff;
border-right: 1px solid #000;
}
ul#topnav li span a{
width:50px;
padding-left:10px;
padding-right:10px;
padding-bottom:10px;
display: block;
color: #f0f0f0;
text-decoration: none;
height:27px;
}
ul#topnav li:hover span
{
display: block;
color: #f0f0f0;
text-decoration: none;
height:27px;
}
ul#topnav li span a { display: inline; }
ul#topnav li span a:hover
{
font-weight:bolder;
width:100%;
}
<ul id="topnav">
<li><a href='../home.aspx'>Home</a></li>
<li><a href='#'>User</a><span><a href='../UserList.aspx'>User Setting</a>|
<a href='../Group.aspx'>Group Setting</a>|
<a href='../FTP.aspx'>FTP activation</a>
</span></li>
</ul>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
ul#topnav {
margin:0;
padding: 0;
float: left;
height:35px;
width: 100%;
list-style: none;
position: relative;
font-size: 14px;
background:#000;
text-align:center;
top: 0px;
left: 0px;
}
ul#topnav li {
float: left;
margin: 0;
padding: 0;
width:15.5%;
height:35px;
border-left: 1px solid #555;
top:0;
}
ul#topnav li a {
display: block;
padding-top:8px;
color: #f0f0f0;
text-decoration: none;
height:27px;
}
ul#topnav li a:hover { font-weight:bold; }
ul#topnav li:hover {
height:35px;
background-color: Red;
}
ul#topnav li span {
font-size:x-small;
padding-top:8px;
padding-bottom:8px;
float: left;
height:27px;
position:absolute;
display: none;
background-color: Red;
border-color:#637a59 #000 #000 #000;
border-style:solid;
border-width:0px;
color: #fff;
border-right: 1px solid #000;
}
ul#topnav li span a {
width:50px;
padding-left:10px;
padding-right:10px;
padding-bottom:10px;
display: block;
color: #f0f0f0;
text-decoration: none;
height:27px;
}
ul#topnav li:hover span {
display: block;
color: #f0f0f0;
text-decoration: none;
height:27px;
}
ul#topnav li span a { display: inline; }
ul#topnav li span a:hover {
font-weight:bolder;
width:100%;
}
</style>
</head>
<body>
<ul id="topnav">
<li><a href='../home.aspx'>Home</a></li>
<li><a href='#'>User</a><span><a href='../UserList.aspx'>User Setting</a>| <a href='../Group.aspx'>Group Setting</a>| <a href='../FTP.aspx'>FTP activation</a> </span></li>
</ul>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
.
.
.
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<asp:ContentPlaceHolder ID="Content_menu" runat="server">
<mnu:ucMenu ID="ucMenu1" runat="server" />
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
.
.
<table id="tblMenu" width="100%" border="5" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td>
<ul id="topnav">
<asp:Literal ID="lt_list" runat="server" ></asp:Literal>
</ul>
</td>
</tr>
</table>
string Home = "<li><a href='../home.aspx'>Home</a></li>";
string UserMgt = "<li><a href='#'>User</a> " +
"<span id='mnuspan'>" +
"<a href='../UserList.aspx'>User Setting</a>| " +
"<a href='../Group.aspx'>Group Setting</a>| " +
"<a href='../FTP.aspx'>FTP activation</a> " +
"</span>" +
"</li>";
ul#topnav {
margin:0; padding: 0;
float: left;
height:35px;
width: 100%;
list-style: none;
position: relative;
font-size: 14px;
background:#000;
text-align:center;
top: 0px;
left: 0px;
}
ul#topnav li {
float: left;
margin: 0; padding: 0;
width:15.5%;
height:35px;
border-left: 1px solid #555;
top:0;
}
ul#topnav li a {
display: block;
padding-top:8px;
color: #f0f0f0;
text-decoration: none;
height:27px;
}
ul#topnav li a:hover {
font-weight:bold;
}
ul#topnav li:hover
{
height:35px;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', EndColorStr='#637a59');
background: -webkit-gradient(linear, left top, left bottom, from(#000), to(#637a59)); /* for webkit browsers */
background: -moz-linear-gradient(top, #000, #637a59);
}
ul#topnav li span
{
font-size:x-small;
padding-top:8px;
padding-bottom:8px;
float: left;
height:27px;
position:absolute;
display: none; /*--Hide by default--*/
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#637a59', EndColorStr='#000000');
background: -webkit-gradient(linear, left top, left bottom, from(#637a59), to(#000000));
background: -moz-linear-gradient(top, #637a59, #000000);
border-color:#637a59 #000 #000 #000 ;
border-style:solid;
border-width:0px;
color: #fff;
border-right: 1px solid #000;
/*--Bottom right rounded corner--*/
-moz-border-radius-bottomright: 5px;
-khtml-border-radius-bottomright: 5px;
-webkit-border-bottom-right-radius: 5px;
/*--Bottom left rounded corner--*/
-moz-border-radius-bottomleft: 5px;
-khtml-border-radius-bottomleft: 5px;
-webkit-border-bottom-left-radius: 5px;
}
ul#topnav li span>a{
width:50px;
padding-left:10px;
padding-right:10px;
padding-bottom:10px;
display: block;
color: #f0f0f0;
text-decoration: none;
height:27px;
}
ul#topnav li:hover span
{
display: block;
color: #f0f0f0;
text-decoration: none;
height:27px;
}
ul#topnav li span a { display: inline; }
ul#topnav li span a:hover
{
font-weight:bolder;
width:100%;
}