Attach to CSS Selector does not work correctly: position: absolute is at fault
| Project: | SimpleMenu |
| Version: | 5.x-4.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
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.
| Attachment | Size |
|---|---|
| simplemenu.absolute.patch | 1.45 KB |

#1
thanks! i've removed this CSS and more, should be good now!
#2
Automatically closed -- issue fixed for two weeks with no activity.