Where to fint that -1px; on the GK Menu childcontent?

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Thu Apr 17, 2014 10:57 pm
Reply with quote
Report this post
Hi,
on http://www.gorast.com/eusnov/ when you roll over the menu you can see that before it get to its final position, the sub menu "childontent" is starting from position -1px. Where can I find that margin-left: -1px;? It says is in element.style.

Thanks,
Gorast
User avatar
Platinum Boarder

GK User
Fri Apr 18, 2014 8:15 pm
Reply with quote
Report this post
If the debug tools says that this is element style it means that it s generated by menu script in gk.menu.js file.
User avatar
Platinum Boarder

GK User
Fri Apr 18, 2014 10:59 pm
Reply with quote
Report this post
Found it but cant figure out how can I remove it and not to hurt the menu system.

If I just delete the '-1' the menu submenu0show correctly to its desired position but the columns are bad.

If you have some time please take look at it.

Thanks,
Gorast
User avatar
Platinum Boarder

GK User
Tue Apr 22, 2014 9:46 am
Reply with quote
Report this post
Did you change something in this menu script? I've just checked the default quickstart and the menu behave different, what is more by default the menu is animated by height and in your website I see that there is no animation.
User avatar
Platinum Boarder

GK User
Tue Apr 22, 2014 9:49 am
Reply with quote
Report this post
Nope.
dzudzek did something to fix the showing of the menu correctly but dont think he messed with this.

You can check the next menu: http://www.gorast.com/eusnov/pravni-home and see that on every menu, the submenu is moved for 1 px on the left.

Thanks,
Gorast
User avatar
Platinum Boarder

GK User
Wed Apr 23, 2014 4:01 pm
Reply with quote
Report this post
Please add this code to override.css file in root/templates/gk_template_name/css directory :
Code: Select all
.gkMenu > ul li div.childcontent { margin-left: 0px !important}

and then just remember to enable "Use override CSS" option in template advanced settings tab.
User avatar
Platinum Boarder


cron