CSS menu


N

netnatter

I making my first attempt at using a CCS menu I went to a menu designer
website and adapted the graphics to suit my needs.

http://e-ictsupport.org/key.aspx

It works fine but not in IE6 when the dropdown part doesn't drop down

How can I ammend the code below to make it work in IE 6?


------------------------------------------------------
<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link rel="stylesheet" type="text/css" href="/menu/menu_style.css" />
</head>
<body>
<form id="form1" runat="server">
<div class = "sidebar">
<asp:TextBox ID="TextBox1" runat="server" Height="183px"
Width="143px"></asp:TextBox>
</div>
<div class="nav-container-outer">

<img src="menu/images/nav-bg-l.jpg" alt="" class="float-left" />
<img src="menu/images/nav-bg-r.png" alt="" class="float-right" />

<ul id="nav-container" class="nav-container">
<li><a class="item-primary" href="" target="_self">Leadership +
Management</a>
Item1</a></li>
Item2</a></li>
</ul>
</li>
<li><span class="divider divider-vert" ></span></li>
<li class="clear">&nbsp;</li>
</ul>
</div>

</form>

</body>
</html>
------------------------------------------------------

The CSS file is this for which I can claim not credit except for adjusting
the sizes to fit my key parts.

------------------------------------------------------
@charset "utf-8";
/* CSS Document */

/*^'^ Navigation Structure ^'^*/

body
{
width:1000px;
}


..sidebar
{
height: 600px;
float: left;
}

..nav-container-outer{
background: #990000;
padding:0px;
height: 100px;
width: 400px;
margin: 0px 10px 0px 10px;
background: url(images/nav-bg.jpg);
float:left
}


..float-left{
float: left;
}
..float-right{
float: right;
}
..nav-container .divider{
display:block;
font-size:1px;
border-width:0px;
border-style:solid;
}
..nav-container .divider-vert{
float:left;
width:0px;
display: none;
}
..nav-container .item-secondary-title{
display:block;
cursor:default;
white-space:nowrap;
}
..clear{
font-size:1px;
height:0px;
width:0px;
clear:left;
line-height:0px;
display:block;
float:none;
}
..nav-container{
position:relative;
zoom:1;
margin: 0 auto;
}
..nav-container a, .nav-container li{
float:left;
display:block;
white-space:nowrap;
}
..nav-container div a, .nav-container ul a, .nav-container ul li{
float:none;
}
..nav-container ul{
left:-10000px;
position:absolute;
}
..nav-container, .nav-container ul{
list-style:none;
padding:0px;
margin:0px;
}
..nav-container li a{
float:none
}
..nav-container li{
position:relative;
}
..nav-container ul{
z-index:10;
}
..nav-container ul ul{
z-index:20;
}
..nav-container ul ul ul{
z-index:30;
}
..nav-container ul ul ul ul{
z-index:40;
}
..nav-container ul ul ul ul ul{
z-index:50;
}
li:hover>ul{
left:auto;
}
#nav-container ul {
top: 80px
}
#nav-container ul li:hover>ul{
top:0px;
left:100%;
}

/*^'^ Primary Items ^'^*/
#nav-container a{
padding:7px 17px 7px 18px;
margin:28px 0px 0px 0px;
color: #6C3600;
font-family: Trebuchet MS, Arial, sans-serif, Helvetica;
font-size:16px;
text-decoration:none;
font-weight: bold;
background: url(images/item-primary-bg.gif);
background-repeat: no-repeat;
background-position: top;
}

#nav-container a:hover{
color:#FFFFFF;
background: url(images/item-primary-bg.gif);
background-repeat: no-repeat;
background-position: center;
}

/*^'^ Secondary Items Container ^'^*/
#nav-container div, #nav-container ul{
padding:0px 4px 10px 4px;
margin:-20px 0px 0px 0px;
background: url(images/item-secondary-container-bg.jpg);
background-repeat: repeat-x;
background-color: #FF9900;
border-bottom: 1px solid #CA6500;
}

/*^'^ Secondary Items ^'^*/
#nav-container div a, #nav-container ul a{
padding:3px 10px 3px 6px;
background-color: #FFFFFF;
background: url(images/item-secondary-bg.jpg);
background-repeat: no-repeat;
background-position: 0px 22px;
font-size:14px;
border-width:0px;
border-style:none;
margin: 0px 0px 0px 0px;
width: 149px;
}

/*^'^ Secondary Items Hover State ^'^*/
#nav-container div a:hover, #nav-container ul a:hover{
background-color: #FFFFFF;
background: url(images/item-secondary-bg.jpg);
background-repeat: no-repeat;
color:#CC0000;
}

/*^'^ Secondary Item Titles ^'^*/
#nav-container .item-secondary-title{
cursor:default;
padding:4px 0px 3px 7px;
color: #6C3600;
font-family: Arial, Trebuchet MS, Arial, sans-serif, Helvetica;
font-size:11px;
/* background: url(images/item-secondary-title-bg.jpg); */
background-repeat: no-repeat;
font-weight:bold;
}

/*^'^ Horizontal Dividers ^'^*/
#nav-container .divider-horiz{
border-top-width:1px;
margin:5px 5px;
border-color: #C16100;
}

/*^'^ Vertical Dividers ^'^*/
#nav-container .divider-vert{
border-left-width:1px;
height:15px;
margin:4px 2px 0px 2px;
border-color:#AAAAAA;
}


Thanks in anticipation

John
 
Ad

Advertisements

M

Mark B

Where did you get the control from? I have been using the asp menu control
but it has had issues so I was looking for a replacement.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top