This may also be true of the default, but there's a screenshot of the blue and black on the module homepage so i KNOW this is a minor bug.
So steps are:
- unleash drupal 6.2 out of the box. use garland theme (default).
- install SimpleMenu dev snapshot
- config SimpleMenu to use the blue and black theme
- witness the black background not showing up
I think this just requires a change to simplemenu.css to work. Set #simplemenu to 'float: left' and the black background returns. See screenshot, note Firebug. That float is not there by default.
With my knowledge of floats, you may want to also make this clear both, but I haven't really tested it....
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | simplemenu-css.patch | 1.02 KB | zroger |
| Picture 4.png | 176.3 KB | ericdfields |
Comments
Comment #1
ericdfields commentedSorry :(
The name of the css file is blackblue.css
Comment #2
henrrrik commentedThe menu bar background is missing in both the original and blackblue themes. Giving
#simplemenuaheightof1.8emin simplemenu.css and2.0emin blackblue.css fixes it.Comment #3
dennison commentedHad the same issue. The height: trick does it.
Comment #4
ardas commentedSame here.
Comment #5
psynaptic commentedAlso had the same issue. Adding
position: fixedto#simplemenufixes the problem and makes the menu follow the page scroll. Seems to work nicely, at least in Firefox 3 Mac.Edit: One problem with this is the sticky table headers get hidden under the simplemenu. Reverting to the height fix mentioned above.
Comment #6
zroger commentedI would prefer to use the float:left method since this is more flexible than using an em-based height.
This works for me in the browsers I have immediately available to me (FF2, FF3, Safari). If someone will verify that this works for IE6 and IE7 then i will commit this.
Comment #7
psynaptic commentedPatch works as advertised. I'd say get this committed.
Comment #8
psynaptic commentedOk, the float: left fix works well but I just wanted to point out that display: inline-block also works. They both have different effects and different results are required on different designs so choose whichever works for your project I guess.
Comment #9
zroger commentedcommitted the float:left fix.
inline-block would be nice but browser support for it is spotty. see http://www.quirksmode.org/css/display.html
Comment #10
zroger commentedFollow up:
float:left fix has been reverted. instead a 'clear-block' class is now being added in the js. This fixes this problem just as well, without some other side-effects. And since the clear-block uses display: inline-block, this fix is still in line with what psynaptic mentioned.
See #http://drupal.org/node/235464#comment-1142691 for more info.