Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Css Menu Won't Work In Ie7

Featured Replies

Ok I've been playing around with the CSS menu generator from here:

 

http://wonderwebware.com/css-menu/

 

Easy to use - looks fine in Firefox & Opera - should look like this for example Move over produces sub menu :

 

mwsnap00620080331170809fh8.th.jpg

 

But it goes haywire in IE7 : Haven't been able to get it to behave at all

In IE7 Can look like this

 

mwsnap00820080331172057do8.th.jpg

 

I know IE has had "issues" with CSS menus but - Emailed the program makers but no reply. I'm no css/html guru sand may have missed something obvious but it would be nice to get this to work!

 

the code is here

Between head:

 

<style type="text/css" media="screen">
#menu {
width: 100%;
background: #0000A0;
float: left;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-style: solid;
border-color: #004080;
}

#menu ul {
list-style: none;
margin: 0;
padding: 0;
width: auto;
float: left;
}

#menu a {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
font-style: normal;
display: block;
margin: 0;
padding: 2px 3px;
color: #FFFFFF;
background: #0000A0;
text-decoration: none;
}

#menu a:hover {
color: #FFFFFF;
background: #400080;
}
#menu ul li a {
border-top-width: 0;
border-right-width: 1px;
border-bottom-width: 0;
border-left-width: 0;
border-style: solid;
border-color: #FFFF00;
}
#menu ul ul li a {
border-top-width: 0;
border-bottom-width: 1px;
border-right-width: 0;
border-left-width: 0;
border-style: solid;
border-color: #FFFF00;
}
#menu ul li a.lastone, #menu ul ul li a.lastone {
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
}
#menu li {position: relative;}

#menu ul ul {
position: absolute;
z-index: 500;
width: 12em;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-style: solid;
border-color: #004080;
}

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

div#menu ul li:hover ul,
div#menu ul ul li:hover ul
{display: block;}

</style>
<!--[if IE]>
<style type="text/css" media="screen">
#menu ul li {float: left; width: 100%;}
</style>
<![endif]-->
<!--[if lt IE 7]>
<style type="text/css" media="screen">
#menu ul li a {height: 1%;} 
#menu a {
font: bold 12px Arial, Helvetica, sans-serif;
}
</style>
<![endif]-->

 

 

 

Between body:

 

<div id="menu"> 
<ul><li><a href="/">TIMETABLE</a>
<ul >
<li><a href=""  >MONDAY</a></li>
<li><a href=""  >TUESDAY</a></li>
<li><a href=""  >WEDNESDAY</a></li>
<li><a href=""  >THURSDAY</a></li>
<li><a href=""  class="lastone">FRIDAY</a></li>
</ul>
</li></ul>
<ul><li><a href="">ABOUT</a>
</li></ul>
<ul><li><a href="">CONTACT</a>
</li></ul>
</ul>
</div>

Dear god, that generator really butchered the CSS! The source code is pretty interesting too.

 

I might get some time later to trawl through the code and work out what's going wrong.

 

I'm sure someone will help you before then, though.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.