Static menu

About the template and stylesheet - and changing the menu
Post Reply
maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Static menu

Post by maeg » Sun Apr 21, 2013 6:16 pm

Hi

I'm wondering if it is possible to make a horizontal static menu, so the menu allways is visible even when you scroll down the site. Like the admin menu when you login on a camimple-xh site.

I hope you understand what i mean.

Jens

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Static menu

Post by cmb » Sun Apr 21, 2013 6:34 pm

Hi maeg,

basically that's simple; just use:

Code: Select all

ul.menulevel1 {position: fixed}
But I heard, that position:fixed is not working for (some older) smartphones, and it may not be fully usable for small browser windows at all.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Static menu

Post by Tata » Sun Apr 21, 2013 8:53 pm

I saw some javascrippts keeping the menu always in the same position, so it is actually not fixed but flowing always against the scrolling page. Tray to google.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply