Advertisement:

Author Topic: Sticky top bar for SMS 2.1  (Read 2038 times)

Offline zijO

  • Jr. Member
  • **
  • Posts: 100
Sticky top bar for SMS 2.1
« on: January 24, 2017, 04:41:06 AM »
Wold be nice if top bar for SMF 2.1 can be set to sticky.

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,646
  • Gender: Male
  • Black cat rulz!
    • Antes on GitHub
    • merta on LinkedIn
    • @antesistan on Twitter
    • Lunarfall
Re: Sticky top bar for SMS 2.1
« Reply #1 on: January 24, 2017, 08:18:22 AM »
Well this is more into trick section but you can do it easily with adding following code to bottom of the index.css

Code: [Select]
#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.
Active Project(s): [ SimpleDesk ] # [ Lunarfall ] # [ CoreStore ]

Past Project(s): [ ezPortal ]

Offline zijO

  • Jr. Member
  • **
  • Posts: 100
Re: Sticky top bar for SMS 2.1
« Reply #2 on: January 24, 2017, 07:17:00 PM »
Thanks a lot , that's perfect.  8)
I actually did try it earlier but it didn't work because caching was on.