-
AuthorPosts
-
joomlanews Friend
joomlanews
- Join date:
- November 2008
- Posts:
- 29
- Downloads:
- 16
- Uploads:
- 10
- Thanks:
- 11
- Thanked:
- 1 times in 1 posts
May 27, 2014 at 6:10 am #198187I want to have my menubar (navbar) always on the top of my screen.
that needs a scrollable bar, that flow down with the screen. It’s the same effect as in JA_Magz?Is that difficult to realize? I saw in the source, it’s something like <div class=”navbar fixed-top…”
what I need to copy from ja_magz? only css or dynamic php code (header block) or both?I’ve already played around with, but without success 🙁
thanks in advance you for your help.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
joomlanews Friendjoomlanews
- Join date:
- November 2008
- Posts:
- 29
- Downloads:
- 16
- Uploads:
- 10
- Thanks:
- 11
- Thanked:
- 1 times in 1 posts
May 27, 2014 at 3:37 pm #536842Tanks pankajsharma
The described solution still works fine for the mobile view. but for the desktop view the menubar scrolls not with the content.
I don’t know wich override should I use? custom.css or in the navbar.less?cheers Roger
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 27, 2014 at 3:48 pm #536845<em>@joomlanews 429458 wrote:</em><blockquote>Tanks pankajsharma
The described solution still works fine for the mobile view. but for the desktop view the menubar scrolls not with the content.
I don’t know wich override should I use? custom.css or in the navbar.less?cheers Roger</blockquote>
Did you added the css classes in navbar.less????
and compiled the less to css??1 user says Thank You to Pankaj Sharma for this useful post
joomlanews Friendjoomlanews
- Join date:
- November 2008
- Posts:
- 29
- Downloads:
- 16
- Uploads:
- 10
- Thanks:
- 11
- Thanked:
- 1 times in 1 posts
May 27, 2014 at 3:50 pm #536846yes exactly! after compiling the menu-navbar was black :). I’ve used the navbar.less from ja_magz. and the position was fix and not scrollable.. I think it need more things to costumize…
joomlanews Friendjoomlanews
- Join date:
- November 2008
- Posts:
- 29
- Downloads:
- 16
- Uploads:
- 10
- Thanks:
- 11
- Thanked:
- 1 times in 1 posts
May 28, 2014 at 4:37 am #536911for other people here, who are interested in that, here my solution:
I added a small css in my custom.css like follows:
/* — menu fix effect — */
.t3-mainnav {
position:fixed;
width:100%;
z-index:9999;
}
.t3-mainbody {
padding-top: 30px;
}
@ media (max-width: 767px) {
.t3-mainbody {
padding-top: 0px !important;
}
now It works for me….
URL to my modification: http://www.joomlainfo.chPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 28, 2014 at 4:39 am #536913Glad you solved it 🙂
Thanks for sharing to others .
All the best your development site -
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by Pankaj Sharma 10 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum