I would really like to stop the menu items jumping around on this site as the parent item expands to fit its child.
I can get it looking how I want when I add this CSS, forcing the menu items to have fixed widths:
/*Menu item 1*/
#menu-item-117 .sub-menu {right: -125px;}
/*Menu item 2*/
#menu-item-73 {width:45px;}
#menu-item-73 .sub-menu {width:980px!important;right: -10px;}
/*Menu item 3*/
#menu-item-122 {width:65px;}
#menu-item-122 .sub-menu{width:980px!important;right: 165px;}
However, this is clearly not ideal, as the menu needs to be dynamic…
Is there a way to achieve what I want via CSS? I hope so!
I am using the Superfish menu that comes with Theme Hybrid for WordPress.
Thanks in advance for any help you can offer!
I get your point .. let’s see again.
This build uses
position: relative/absolute;instead offloat: right/left;and it has one flaw mentioned below.However I haven’t test this in old browsers including IE (tested in Chrome & Firefox), but I hope this may provide you some idea to implement it. 🙂