Jump to content

Recommended Posts

The popups from the previous post are now working fine in everything including IE7. Problem in IE7, though. When mousing below the second option, the submenu disappears.

 

Running IE7? check this link:

http://www.mlmurphydesign.com/menu.php

 

My best guess is the nested <ul> is not being rendered as part of the parent <li> and mousing outside the height of the parent <li> is making the nested <ul> disappear.

 

the magic part of the CSS that makes it all work:

ul.menu li:hover > ul {
display:block;
}

 

Something like this should do the trick -- but I can't figure out how to code it:

ul.menu li ul:hover {
ul.menu li ul { /* This might explode all the menus, instead of just one, but you get the idea */
	display:block;
}
}

 

 

 

the whole story (If you're interested in all of it):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Menu -- all by itself</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="elements/menupopper.css?col=" rel="stylesheet" type="text/css" />
</head>
<body style="background:#FFC;"><div style="text-align:center;"><table cellpadding="0" cellspacing="0" style="margin:auto;"><tr><td style="height:5px;"></td></tr>
<tr><td>
<ul class="menu">
<li><a href="index.html">Home</a>
<ul>
	<li><a href="louisiana.html">Louisiana</a></li>
	<li><a href="house.html">House</a></li>
	<li><a href="dujour.html">Du Jour</a></li>
</ul></li>
</ul></td><td> </td>
<td><ul class="menu">
<li><a href="plans.html">Plans</a>
<ul>
	<li><a href="1000-2000.html">1000 - 2000</a></li>
	<li><a href="2000-3000.html">2000 - 3000</a></li>
	<li><a href="3000andup.html">3000 - Up</a></li>
</ul></li>
</ul></td><td> </td>
<td><ul class="menu">
<li><a href="gallery.html">Gallery</a>
<ul>
	<li><a href="exterior.html">Exterior</a></li>
	<li><a href="interior.html">Interior</a></li>
	<li><a href="detail.html">Detail</a></li>
</ul></li>
</ul></td><td> </td>
<td><ul class="menu">
<li><a href="lagniappe.html">Lagniappe</a>
<ul>
	<li><a href="cottages.html">Cottages</a></li>
	<li><a href="ancillary.html">Ancillary</a></li>
	<li><a href="miscellaneous.html">Miscellaneous</a></li>
</ul></li>
</ul></td><td> </td>
<td><ul class="menu">
<li><a href="comingplans.html">Coming Plans</a>
<ul>
	<li><a href="frenchcountry.html">French Country</a></li>
	<li><a href="creole.html">Creole</a></li>
	<li><a href="westindies.html">West Indies</a></li>
	<li><a href="tudor.html">Tudor</a></li>
	<li><a href="colonial.html">Colonial</a></li>
</ul></li>
</ul></td><td> </td>
</tr></table></div></body></html>

 

/* CSS Document */
ul li ul {
margin-left:-2px;
margin-top:2px;
}
ul.menu {
width:110px;
height:35px;
font:13px Arial;
position:relative;
}
ul.menu ul {
position:absolute;
display:none;
}
ul.menu li:hover > ul {
display:block;
}
ul.menu li a {
text-decoration:none !important;
color:#775841;
display:block;
}
ul.menu li:hover, ul.menu li:hover > a, ul.menu li > ul a:hover {
color:#FFF !important;
background:#000;
}
ul.menu li {
width:105px;
position:relative;
list-style-type: none;
border: 2px solid #775841;
background:#FFC;
border-width: 1px 2px 1px 2px;
padding-top:4px;
padding-bottom:2px;
text-align:center;
}
ul,li {
padding-left:0;
margin-left:0;
}
ul.menu ul li {
color:#775841;
background:#775841;
}
ul.menu ul li a {
color:#FFF !important;
}

Link to comment
https://forums.phpfreaks.com/topic/37553-css-popup-menu-ie7-specific-issue/
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.