News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Sticky top bar for SMS 2.1

Started by zijO, January 24, 2017, 04:41:06 AM

Previous topic - Next topic

zijO

Wold be nice if top bar for SMF 2.1 can be set to sticky.

Antes

Well this is more into trick section but you can do it easily with adding following code to bottom of the index.css

#top_section {
position: fixed;
width: 100%;
z-index: 1001;
}
#header {
margin: 40px 5% 0 5%;
}


if you need more advanced solution, you probably do some jScript changes. But I hardly think such feature will be included inside SMF 2.1.

zijO

Thanks a lot , that's perfect.  8)
I actually did try it earlier but it didn't work because caching was on. 

Advertisement: