Jump to content
Stef's Coding Community
Sign in to follow this  
Guest neonsky

CSS horizontal menu problems in IE7 - shows vertically

Recommended Posts

Guest neonsky

EDIT: Please ignore the post below - i just figured it out - i had accidentally deleted the following 'fix' from my menu code

 

/* Hide from IE5-Mac \*/
#nav-menu li a
{
float: none
}
/* End hide */

 

It is now displaying correctly, albeit without a space between each menu item - anyone know how to fix that? :)

_________________________________________________

 

Hoping somebody can help with this. I'm new at CSS, and having trouble with my horizontal menu displaying correctly in IE 7, in which it shows vertically. It seems to work fine in Firefox, IE8.

I am using this menu code (i think) which I then tweaked:

 

/* Menu */
#nav-menu ul
{
list-style: none;
padding: 0;
margin: 0;

} 

/* puts menu items in a line */
#nav-menu li
{
float: right;
margin: 0 0.15em;
} 

#nav-menu li a
{
   background-color:#FFFFFF;
   height: 2em;
   line-height: 2em;
   float: right;
   width: 120px;
   display: inline-table;
   border: 0px solid #999;



color:#CCCCCC
text-decoration: none;
   text-align: right;
   color: #4FB513;
   font-weight: bold;
} 

/* End Menu */

 

What can I do to make it display correctly in IE7? I'm quite happy to use completely different code if mine is all wrong, as I messed with it quite a bit (with no real clue what i'm doing). This is the site: http://www.jampost.co.uk

Any help VERY gratefully received!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...