473,498 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Broken Menu in IE

Airslash
221 New Member
Hello,

I'm currently rewriting an entire CMS into Ruby on Rails, but I have an isue with the CSS and generating the dropdown menu in HTML. Perhaps this is not entirely the correct forum as the syntax is different, but you should get the picture.

here is the code

HTMl - HAML
Expand|Select|Wrap|Line Numbers
  1. #menu
  2.       %ul
  3.         %li
  4.           = link_to 'Category Management', '#', :class => "MenuBarItemSubmenu"
  5.           %ul
  6.             %li
  7.               = link_to 'Manage Categories', '/admin/category/list/'
  8.             %li
  9.               = link_to 'Manage Sets', '/admin/set/'
  10.         %li
  11.           = link_to 'Item Management', '#', :class => "MenuBarItemSubmenu"
  12.           %ul
  13.             %li
  14.               = link_to 'Manage Items', '/admin/product/list/'
  15.             %li
  16.               = link_to 'Manage Prices', '/admin/product/price_formula/'
  17.         %li
  18.           = link_to 'Event Management', '#', :class => "MenuBarItemSubmenu"
  19.           %ul
  20.             %li
  21.               = link_to 'Manage Discout Events', '/admin/event/list/'
  22.             %li
  23.               = link_to 'Manage Subscription Event', '/admin/subscription_event'
  24.             %li
  25.               = link_to 'Manage Auction Event', '/admin/auctionevent'
  26.         %li
  27.           = link_to 'Module Management', '#', :class => "MenuBarItemSubmenu"
  28.           %ul
  29.             %li
  30.               = link_to 'Manage User Modules', '/admin/module/list/'
  31.             %li
  32.               = link_to 'Manage Fixed Modules', '/admin/module/predefine_module'
  33.         %li
  34.           = link_to 'Content Management', '#', :class => "MenuBarItemSubmenu"
  35.           %ul
  36.             %li
  37.               = link_to 'Manage Images', '/admin/image/list/'
  38.             %li
  39.               = link_to 'Manage Image Sizes', '/admin/image/set_size'
  40.             %li
  41.               = link_to 'Manage Checkout', '/admin/event/toggleCheckout'
  42.         %li
  43.           = link_to 'Reports Management', '#', :class => "MenuBarItemSubmenu"
  44.           %ul
  45.             %li
  46.               = link_to 'Sales Reports', '/admin/report/sale_report'
  47.             %li
  48.               = link_to 'Set Sales Report', '/admin/report/setsale_report'
  49.             %li
  50.               = link_to 'Active Items Report', '/admin/report/active_report'
  51.             %li
  52.               = link_to 'Active Sets Report', '/admin/report/setactive_report'
  53.             %li
  54.               = link_to 'Auction Report', '/admin/report/auction_report'
  55.             %li
  56.               = link_to 'User Statistics Report', '/admin/report/user_statistics_report'
  57.         %li
  58.           = link_to 'Purchase Management', '#', :class => "MenuBarItemSubmenu"
  59.           %ul
  60.             %li
  61.               = link_to 'Purchase History', '/admin/history'
  62.             %li
  63.               = link_to 'Subscription', '/admin/subscription/list'
  64.         %li
  65.           = link_to 'User Management', '#', :class => "MenuBarItemSubmenu"
  66.           %ul
  67.             %li
  68.               = link_to 'Manage Users', '/admin/user'
  69.             %li
  70.               = link_to 'Change Password', '/admin/user/changepassword'
  71.  
CSS - SASS
Expand|Select|Wrap|Line Numbers
  1. #menu
  2.   :background #88B966
  3.   :border-bottom 1px solid #FFFFFF
  4.   :height 25px
  5.   :width auto
  6.   ul
  7.     :background-color #88B966
  8.     :font-size 100%
  9.     :list-style-type none
  10.     :margin 0px
  11.     :padding 0px
  12.     :width auto
  13.     :z-index 1000
  14.     li
  15.       :cursor pointer
  16.       :display inline
  17.       :float left
  18.       :font-size 100%
  19.       :list-style-type none
  20.       :margin 0px
  21.       :padding 0px
  22.       :position relative
  23.       :width 150px
  24.       a
  25.         :background-color #88B966
  26.         :border-right solid 1px #FFFFFF
  27.         :color #FFFFFF
  28.         :cursor pointer
  29.         :display block
  30.         :margin 0px
  31.         :padding 0.5em 0.75em
  32.         :text-decoration none
  33.         &:hover
  34.           :background-color #68B4C8
  35.       &:hover ul,li
  36.         :display block
  37.       ul
  38.         :border solid 1px #CCCCCC
  39.         :cursor default
  40.         :display none
  41.         :font-size 100%
  42.         :list-style-type none
  43.         :margin 0px
  44.         :padding 0px
  45.         :position absolute
  46.         :width 13.8em
  47.         &:hover
  48.           :display block
  49.         li
  50.           :cursor pointer
  51.           :float left
  52.           :font-size 100%
  53.           :list-style-type none
  54.           :margin 0px
  55.           :padding 0px
  56.           :position relative
  57.           :text-align left
  58.           a
  59.             :background-color #88B966
  60.             :border none
  61.             :display block
  62.             :font-size 10px
  63.             :font-weight normal
  64.             :margin-left -1px
  65.             :text-align left
  66.             :text-decoration none
  67.  
The code works perfectly in FF and I'm able to select all the menus and submenus in the dropdown.
However in IE the menu appears if I hover over the top linksm but dissapears as soon as I move my mouse to the second child menu or out of the links.
Jan 26 '09 #1
1 2079
Airslash
221 New Member
solved it....

added position: relative and z-index 20000 to the top wrapper div element for IE only
Jan 26 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1574
by: Ernest | last post by:
Hello I think that I'm having a problem with a damaged table, but I'm not sure. First of all, I'm using the following: -Suse 9.0 (Kernel 2.4.21-192) -MySQL 4.0.15 -PHP 4.3.3 -Apache 1.3.28
3
2669
by: Gerson Kurz | last post by:
I have problems getting "COM makepy" working in ActivePython 2.3.2. This is what happens when I start "COM makepy" from the Pythonwin Menu: PythonWin 2.3.2 (#49, Nov 6 2003, 10:18:20) on...
3
1647
by: Michael | last post by:
I have broken PythonWin and I don't know how or why. It worked great until recently. I have installed / removed several apps since it worked last. I could have a virus unknown to my antivirus...
8
3378
by: Chris Bailiss | last post by:
Hi all, I am unable to run any VBA in access XP. I get the compile error of 'Error In Loading DLL'. Behaviour of the wizards is also patchy. I cannot get past the first screen in most (i.e....
10
2612
by: Bob | last post by:
Apparently customizing the system menu in a Form requires API calls... that's fine, but RemoveMenu doesn't work. Will I have to pop up my own menu to get rid of certain selections? Bob
28
3128
by: Craig Cockburn | last post by:
I have a tool which tells me the number of times that visitors attempt to access a link from my site to an external site and what the response code received was. In the event of the remote site...
18
1582
by: Windsun | last post by:
I have been playing with the "perfect" 3-column liquid CSS page for a couple of weeks now - one that fits all browsers and all widths from around 750 to 1250. I think I am getting close, but I...
25
4654
by: Norman Diamond | last post by:
I think the current version of _vsnwprintf_s is broken, in ordinary Windows. I'm not completely sure yet but it looks like this breakage is worse than previously known Windows CE breakage of...
0
838
by: Matt Lowrance | last post by:
I'm not sure if this is the best place to port this, but I couldn't seem to find a Deployment specific group, so here goes... I have an application that I have created a Setup and Deployment...
0
7002
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7203
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4908
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.