Jump to content

Menu in IE and FX


mithu_sree

Recommended Posts

Here is what i have done.
It works well on Firrefox 1.5
but not on IE
Can anyone clarify why it is?



-------------PHP function---------------

[code]
<?php

function makeCssMenu() {
echo "<div id=\"nav\">
<ul>
<li><a href=\"./home.php\" >Home </a></li>
</ul>

<ul>
<li><a>Management1</a>
<ul>
<li><a href=\"screen1.php\" >Add </a></li>
<li><a href=\"screen2.php\" > Browse </a></li>
</ul>
</li>
</ul>

<ul>
<li><a>Management2</a>
<ul>
<li><a href=\".screen3.php\" >Add </a></li>
<li><a href=\"screen4.php\" > Browse</a></li>
</ul>
</li>
</ul>

<ul>
<li><a href=\"./theme.php\" >Themes </a></li>
</ul>

<ul>
<li><a href=\"./about.php\" >About </a></li>
</ul>

</div><br /><br />";
}
?>


[/code]


--------------------------------- CSS file _-------------------------

[code]
/**************** menu coding *****************/
#nav {
width: 100%;
float: left;
}

#nav ul {
list-style: none;
margin: 0;
padding: 0;
width: 20%;
float: left;
}

#nav ul>li>a{
font: bold 11px/16px arial, helvetica, sans-serif;
display: block;
margin: 0;
padding: 2px 3px;
width : 190px;
}

#nav ul>li>a {
text-decoration: none;
padding-left: 5px;
}

#nav ul>li>a:hover {
}

#nav li {
position: relative;
cursor: Default;
}

#nav ul ul {
position: absolute;
z-index: 500;
}

#nav ul ul ul {
position: absolute;
top: 0;
left: 100%;
}

div#nav ul ul {
display: none;
}

div#nav ul ul,
div#nav ul li:hover ul ul,
div#nav ul ul li:hover ul ul{
display: none;
}

div#nav ul li:hover ul,
div#nav ul ul li:hover ul,
div#nav ul ul ul li:hover ul{
display: block;
}
[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.