main menu fix?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Aug 20, 2012 9:19 pm
Reply with quote
Report this post
Hello everybody, Good afternoon.
Is there a script to keep the main fixed menu at the top of the page?
Image
User avatar
Senior Boarder

GK User
Mon Aug 20, 2012 10:35 pm
Reply with quote
Report this post
Hi

You can try adding this line on override.css file (don't forget to enable on template parameters > Advanced Settings)

Code: Select all
#gkPageNav {position: fixed;top: 0;width:100%;}


Cheers
User avatar
Platinum Boarder

GK User
Tue Aug 21, 2012 4:38 am
Reply with quote
Report this post
Cheers Seichina!

It worked perfectly, css3 commendable.

Thanks friend!
User avatar
Senior Boarder

GK User
Tue Aug 21, 2012 10:35 am
Reply with quote
Report this post
In my case when using this my TopMenu is aligned to the left instead of center...

any way to fix this?
User avatar
Fresh Boarder

GK User
Tue Aug 21, 2012 1:44 pm
Reply with quote
Report this post
Well Desther ...
I do not quite understand what you meant with topmenu, but as regards the menus.
There are only these as standard in creative:
Main Menu
Footer Menu
Mobile Menu
User Menu
Top Nav
Recipes
Category Menu

None of these are left-aligned.
Can you explain better, maybe I can help you ...
One hug.
User avatar
Senior Boarder

GK User
Tue Aug 21, 2012 2:03 pm
Reply with quote
Report this post
Seichinha,

I made the changes and there was no problem with mainmenu.
It was perfect, but it occupies the space of other modules such as breadcumbs.
Another detail applies after the change in the main menu item "K2."
Because mainmenu overlays the mod_search and first item of k2.
I tested inserting code with weight.
Ex:
Code: Select all
 # gkPageNav {position: fixed; top: 0 width: 100%; weight: 50%}

"or weight: 20px"
However does not apply.

Thanks
User avatar
Senior Boarder

GK User
Wed Aug 22, 2012 10:28 am
Reply with quote
Report this post
vitorreis wrote:Well Desther ...
I do not quite understand what you meant with topmenu, but as regards the menus.
There are only these as standard in creative:
Main Menu
Footer Menu
Mobile Menu
User Menu
Top Nav
Recipes
Category Menu

None of these are left-aligned.
Can you explain better, maybe I can help you ...
One hug.

Yes, main menu which you wanted to be fixed on top and always shown. I was referring it as Top Menu because it is at position on top - sorry my bad.

Try viewing this at something like 24' monitor, you should see it left-aligned like me.
User avatar
Fresh Boarder

GK User
Thu Aug 23, 2012 12:10 am
Reply with quote
Report this post
Ok Desther, :)

Please verify by entering this code solves.
Code: Select all
#gkPageNav {position:fixed; left:0px; right:0px; top:0px; bottom:0px; height:30px; width:100%;}

If possible let me know if you have the same problem with the overlay of the items mentioned by me earlier.
As breadcumb, mod_search and so on.

One hug.
User avatar
Senior Boarder

GK User
Thu Aug 23, 2012 4:56 pm
Reply with quote
Report this post
Hi again

Let me check it again and i provide a better solution later night.
User avatar
Platinum Boarder

GK User
Fri Aug 24, 2012 12:45 am
Reply with quote
Report this post
Hi again

Forget all previous code and use this one:

Code: Select all
#gkPageNav {position: fixed!important; top: 0;width: 94%}
#gkPageTop {padding-top: 99px!important}


I don't see other way and it looks good.

Cheers
User avatar
Platinum Boarder

GK User
Fri Aug 24, 2012 1:51 am
Reply with quote
Report this post
I not dispense the line #gkPageTop {padding-top: 99px! Important} because this is a solution to not overlap breadcumbs and other modules.
But I prefer to keep the line gkPageNav #{position: fixed; left: 0px; right: 0px; top: 0px; bottom: 0px; height: 30px; width: 100%;} too.

If you do a test to reduce screen view by pressing ctrl+- along these lines
#gkPageNav {position: fixed! important, top: 0, width: 94%}
#gkPageTop {padding-top: 99px! important}
the main menu will be left-aligned.
Press CTRL+0 screen back to normal.

But i prefer well::
Code: Select all
#gkPageNav {position: fixed; left: 0px; right: 0px; top: 0px; bottom: 0px; height: 30px; width: 100%;}
#gkPageTop {padding-top: 99px! important}

the same problem does not occur.

Thank you for this solution! :D
One hug!
User avatar
Senior Boarder

GK User
Fri Aug 24, 2012 2:32 am
Reply with quote
Report this post
If you don't mind to have gkPageNav full width (not the same as the demo) use instead:

Code: Select all
#gkPageNav {position: fixed!important; top: 0; width: 100%;margin-left: -25px}
#gkPageTop {padding-top: 99px! important}
User avatar
Platinum Boarder


cron