Attach to CSS Selector does not work correctly: position: absolute is at fault

rfay - December 11, 2007 - 00:08
Project:SimpleMenu
Version:5.x-4.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

There's a problem with the "Attach to CSS selector" - it doesn't result in the menu appearing in the correct place (at least on most themes). In the examples I tried, it always ended up appearing on the top-level block, because there was a relative-positioned element in between, so it positions absolutely in the wrong place on the page.

My solution is to remove the position:absolute; from the #simplemenu selector at the top of themes/original/original.css and themes/blackblue/blackblue.css, as the attached patch does.

The workaround is just to add:

ul#simplemenu {
  position:static;
}

to your theme's style.css.

AttachmentSize
simplemenu.absolute.patch1.45 KB

#1

m3avrck - January 26, 2008 - 22:27
Status:patch (code needs review)» fixed

thanks! i've removed this CSS and more, should be good now!

#2

Anonymous (not verified) - February 9, 2008 - 22:31
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.