MyBB Community Forums

Full Version: add a div that is static
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,
sorry about the cryptic title but I can not think of a better one !

first thing to do is to look at my site you will notice I have a vertical menu to the left ... I want that to stay static (always in the same place) on the screen. I tried with the following css class for the object :-
position: fixed;
top: 0px;
left: 0px;
z-index: -100;
height: 100%;
the menu code was then placed in the footer as no menu appeared with the code in the header
which displayed the menu but the hover/click functions would not work unless you place the mouse of the edge of the screen. I guess it has something to do with top & left but I'm at a loss
it should work ; could not find above css on the source ...
[quote='ranjani' pid='789580' dateline='1322321953']
it should work ; could not find above css on the source ...
[quote]

I disabled it because it did not work .... I'll add a theme with it in so you can test it
ul#css3menu2 add:

position: fixed;
(2011-11-26, 04:04 PM)Jason L. Wrote: [ -> ]ul#css3menu2 add:

position: fixed;

worked a treat thanks