h4mmy
Junior Member
Posts: 267
inherit
185188
0
Oct 27, 2013 14:53:00 GMT -8
h4mmy
267
November 2012
h4mmy
|
Post by h4mmy on Apr 16, 2013 13:46:59 GMT -8
HI,
Is there a way to keep the header and the menu bar static so it doesn't scroll with the page?
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Apr 16, 2013 14:01:48 GMT -8
HI, Is there a way to keep the header and the menu bar static so it doesn't scroll with the page? By header do you mean the Banner? And menu bar, do you mean the nav bar (as in, where it shows the buttons - Home, Search, Admin etc) ? If so, for both go to admin > themes > advanced styles & css > header (top) In the be sure to set your nav bar + banner to whatever you prefer.
|
|
h4mmy
Junior Member
Posts: 267
inherit
185188
0
Oct 27, 2013 14:53:00 GMT -8
h4mmy
267
November 2012
h4mmy
|
Post by h4mmy on Apr 16, 2013 14:59:36 GMT -8
Yes, sorry that is what I meant, banner and nav bar. Been in there, but not exactly sure how I make it static. When I scroll the screen - I want the banner and the nav bar to stay where they are instead of scrolling with page
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Apr 16, 2013 15:04:15 GMT -8
Yes, sorry that is what I meant, banner and nav bar. Been in there, but not exactly sure how I make it static. When I scroll the screen - I want the banner and the nav bar to stay where they are instead of scrolling with page In Advanced Styles & CSS > Header For banner, I see no background attachment, to set it to either scroll or be fixed, but for the nav bar, it says "background attachment" then has the two options.
|
|
h4mmy
Junior Member
Posts: 267
inherit
185188
0
Oct 27, 2013 14:53:00 GMT -8
h4mmy
267
November 2012
h4mmy
|
Post by h4mmy on Apr 16, 2013 15:38:27 GMT -8
I tried them (fixed/no scroll or something like that) and they did nothing - except remove the bar in which the nav menu items appear so the menu items sat on a transparent background!!
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 17, 2013 9:19:25 GMT -8
h4mmy, correct me if I'm wrong, but are you looking for something similar to how the pagination bar works in this thread? Where it's on the top of the page at all times?
|
|
h4mmy
Junior Member
Posts: 267
inherit
185188
0
Oct 27, 2013 14:53:00 GMT -8
h4mmy
267
November 2012
h4mmy
|
Post by h4mmy on Apr 17, 2013 9:52:27 GMT -8
Yes Brian.....thankyou, that's what I mean Guess, I'm not good at explaining things clearly
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 17, 2013 10:14:43 GMT -8
First you'll want to visit Structure > Layout Templates > Forum Wrapper. Find the opening <header> tag and the closing </header> tag. Copy these tags and everything in between them, erase them, then paste them on the line above <div id="wrapper">. All you're essentially doing is moving that entire section of code before the wrapper div. After that, all you have to do is paste this at the bottom of Themes > Advanced Styles & CSS > Style Sheet. Adjust the number in red until you're satisfied with the distance between the banner/menu area and the rest of the forum.
|
|
h4mmy
Junior Member
Posts: 267
inherit
185188
0
Oct 27, 2013 14:53:00 GMT -8
h4mmy
267
November 2012
h4mmy
|
Post by h4mmy on Apr 17, 2013 10:20:39 GMT -8
Brilliant.... off to do that now. Many thanks Brian
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 17, 2013 10:21:17 GMT -8
Let me know how it goes.
|
|
Sunny
New Member
Posts: 69
inherit
189780
0
May 2, 2013 7:38:33 GMT -8
Sunny
69
February 2013
wintermoonrise
|
Post by Sunny on Apr 17, 2013 10:55:12 GMT -8
Can I just make the menu bar static? I didn't realize the process above was also for the banner and it kind of messed things up. I put it back but I would really like the idea of having a static menu bar.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 17, 2013 11:07:48 GMT -8
Can I just make the menu bar static? I didn't realize the process above was also for the banner and it kind of messed things up. I put it back but I would really like the idea of having a static menu bar. Yep! Follow the same steps in this thread, but instead of moving <header>, move <div id="navigation-menu"> and everything between it and its closing </div> above the <div id="wrapper"> element. Then add this to the bottom of your style sheet.
|
|
Sunny
New Member
Posts: 69
inherit
189780
0
May 2, 2013 7:38:33 GMT -8
Sunny
69
February 2013
wintermoonrise
|
Post by Sunny on Apr 17, 2013 11:14:13 GMT -8
Perfect! Now if I ever want to a a border-bottom to the whole thing would that go with #navigation-menu { position: fixed; top: 0px; z-index: 2000; width: 100%; } like this? #navigation-menu { position: fixed; top: 0px; z-index: 2000; width: 100%; border-bottom: #ffffff solid 2px; }
|
|
Sunny
New Member
Posts: 69
inherit
189780
0
May 2, 2013 7:38:33 GMT -8
Sunny
69
February 2013
wintermoonrise
|
Post by Sunny on Apr 17, 2013 11:16:21 GMT -8
Apparently so! XD
Thanks again ^^
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 17, 2013 11:21:48 GMT -8
Sure thing, yo.
|
|