-
AuthorPosts
-
tiggercat Friend
tiggercat
- Join date:
- November 2011
- Posts:
- 50
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
May 30, 2012 at 11:26 am #177688Hi there,
What code do I need to change to have a fixed top.mainnav, top.header and top.menu?
Thanks,
Nicole
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
tiggercat Friendtiggercat
- Join date:
- November 2011
- Posts:
- 50
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
May 30, 2012 at 4:30 pm #455464<em>@TomC 322839 wrote:</em><blockquote>Nicole:
Can you provide the url of the site you’re working on?
Also, please set “Optimize CSS” to “No’ within your Template Manager–General Settings</blockquote>Thank you very much for your help, Tom.
http://www.apollo-mfg.cn, the “Optimize CSS” is set to No.
Thanks again.
Nicole
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
tiggercat Friendtiggercat
- Join date:
- November 2011
- Posts:
- 50
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
May 31, 2012 at 1:02 am #455484<em>@TomC 322850 wrote:</em><blockquote>So, just so I am clear, you want your header and main nav to “stick,” with the content scrolling “under” it – for all pages?</blockquote>
Yes. thanks, Tom.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 31, 2012 at 2:48 am #455487Okay, there are a few of steps to get this to work . . . .
STEP ONE:
Within file path –> /templates/ja_nex/css/template.cssat line 733, modify as follows:
<blockquote>#ja-topmenu {
background: none repeat scroll 0 0 </blockquote><blockquote>#222222
border-bottom: 1px solid #111111
color: #999999
padding: 1px 0;
position: fixed;
z-index: 999;
}</blockquote>STEP TWO:
Within file path –> /templates/ja_nex/css/template.cssat line 755, modify as follows:
<blockquote>#ja-header {
background: none repeat scroll 0 0 </blockquote><blockquote>#CC3333
position: fixed;
to: 25px;
}</blockquote>STEP THREE:
Within file path –> /templates/ja_nex/css/template.cssat line 686, modify as follows:
<blockquote>#ja-mainnav {
line-height: 1;
position: fixed;
top: 98px;
z-index: 11;
}</blockquote>Let me know if that works for you.
1 user says Thank You to TomC for this useful post
tiggercat Friendtiggercat
- Join date:
- November 2011
- Posts:
- 50
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
May 31, 2012 at 4:01 am #455492<em>@TomC 322880 wrote:</em><blockquote>Okay, there are a few of steps to get this to work . . . .
STEP ONE:
Within file path –> /templates/ja_nex/css/template.cssat line 733, modify as follows:
STEP TWO:
Within file path –> /templates/ja_nex/css/template.cssat line 755, modify as follows:
STEP THREE:
Within file path –> /templates/ja_nex/css/template.cssat line 686, modify as follows:
Let me know if that works for you.</blockquote>
Hi Tom,
Thank you so very much for your above instruction steps.
I followed your instruction, and I think we still need to do a bit work to get them positioned well.
Here is the screen shot after/before I modified the code:
Thanks,
Nicole-
tiggercat Friend
tiggercat
- Join date:
- November 2011
- Posts:
- 50
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
June 12, 2012 at 12:30 am #457006Thank you Hieu Nguyen for your great help!!!
Here below is the update on how to do it:
To stick 3 elelents you need a fixed position, a Fixed Height to each elements and also you need to place each element to their proper fixed position:
1) The code will be:
Within file path –> /templates/ja_nex/css/template.css#ja-topmenu { position: fixed; height: 30px; top: 0; z-index: 999;}
#ja-header { position: fixed; height: 80px; top: 30px; /* Place for topmenu */ z-index: 9999;}
#ja-mainnav { position: fixed; height: 42px; top:110px; /* Place for topmenu + header */ z-index: 9999;}2) Because you fixed these elements, all elements below this will be place on the top of the page. So you need to make a Padding to the “warpper” to ensure others elements will be place below topmenu , header + mainnav, you need to add below code:
Within file path –> /templates/ja_nex/css/template.css#ja-wrapper { padding-top: 172px }
Enjoy!
Nicole -
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 2 voices, and was last updated by tiggercat 12 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum