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 -
#menu
-
%ul
-
%li
-
= link_to 'Category Management', '#', :class => "MenuBarItemSubmenu"
-
%ul
-
%li
-
= link_to 'Manage Categories', '/admin/category/list/'
-
%li
-
= link_to 'Manage Sets', '/admin/set/'
-
%li
-
= link_to 'Item Management', '#', :class => "MenuBarItemSubmenu"
-
%ul
-
%li
-
= link_to 'Manage Items', '/admin/product/list/'
-
%li
-
= link_to 'Manage Prices', '/admin/product/price_formula/'
-
%li
-
= link_to 'Event Management', '#', :class => "MenuBarItemSubmenu"
-
%ul
-
%li
-
= link_to 'Manage Discout Events', '/admin/event/list/'
-
%li
-
= link_to 'Manage Subscription Event', '/admin/subscription_event'
-
%li
-
= link_to 'Manage Auction Event', '/admin/auctionevent'
-
%li
-
= link_to 'Module Management', '#', :class => "MenuBarItemSubmenu"
-
%ul
-
%li
-
= link_to 'Manage User Modules', '/admin/module/list/'
-
%li
-
= link_to 'Manage Fixed Modules', '/admin/module/predefine_module'
-
%li
-
= link_to 'Content Management', '#', :class => "MenuBarItemSubmenu"
-
%ul
-
%li
-
= link_to 'Manage Images', '/admin/image/list/'
-
%li
-
= link_to 'Manage Image Sizes', '/admin/image/set_size'
-
%li
-
= link_to 'Manage Checkout', '/admin/event/toggleCheckout'
-
%li
-
= link_to 'Reports Management', '#', :class => "MenuBarItemSubmenu"
-
%ul
-
%li
-
= link_to 'Sales Reports', '/admin/report/sale_report'
-
%li
-
= link_to 'Set Sales Report', '/admin/report/setsale_report'
-
%li
-
= link_to 'Active Items Report', '/admin/report/active_report'
-
%li
-
= link_to 'Active Sets Report', '/admin/report/setactive_report'
-
%li
-
= link_to 'Auction Report', '/admin/report/auction_report'
-
%li
-
= link_to 'User Statistics Report', '/admin/report/user_statistics_report'
-
%li
-
= link_to 'Purchase Management', '#', :class => "MenuBarItemSubmenu"
-
%ul
-
%li
-
= link_to 'Purchase History', '/admin/history'
-
%li
-
= link_to 'Subscription', '/admin/subscription/list'
-
%li
-
= link_to 'User Management', '#', :class => "MenuBarItemSubmenu"
-
%ul
-
%li
-
= link_to 'Manage Users', '/admin/user'
-
%li
-
= link_to 'Change Password', '/admin/user/changepassword'
-
CSS - SASS -
#menu
-
:background #88B966
-
:border-bottom 1px solid #FFFFFF
-
:height 25px
-
:width auto
-
ul
-
:background-color #88B966
-
:font-size 100%
-
:list-style-type none
-
:margin 0px
-
:padding 0px
-
:width auto
-
:z-index 1000
-
li
-
:cursor pointer
-
:display inline
-
:float left
-
:font-size 100%
-
:list-style-type none
-
:margin 0px
-
:padding 0px
-
:position relative
-
:width 150px
-
a
-
:background-color #88B966
-
:border-right solid 1px #FFFFFF
-
:color #FFFFFF
-
:cursor pointer
-
:display block
-
:margin 0px
-
:padding 0.5em 0.75em
-
:text-decoration none
-
&:hover
-
:background-color #68B4C8
-
&:hover ul,li
-
:display block
-
ul
-
:border solid 1px #CCCCCC
-
:cursor default
-
:display none
-
:font-size 100%
-
:list-style-type none
-
:margin 0px
-
:padding 0px
-
:position absolute
-
:width 13.8em
-
&:hover
-
:display block
-
li
-
:cursor pointer
-
:float left
-
:font-size 100%
-
:list-style-type none
-
:margin 0px
-
:padding 0px
-
:position relative
-
:text-align left
-
a
-
:background-color #88B966
-
:border none
-
:display block
-
:font-size 10px
-
:font-weight normal
-
:margin-left -1px
-
:text-align left
-
:text-decoration none
-
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.
1 2079
solved it....
added position: relative and z-index 20000 to the top wrapper div element for IE only
Sign in to post your reply or Sign up for a free account.
Similar topics |
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
|
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...
|
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...
|
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....
|
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
| |
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 ...
| |