Submenu offset of the rightmost menu item

Business template for Joomla 3 and 2.5 ideal to create blog or personal website.
GK User
Wed Jul 25, 2012 9:58 am
Hi, can't fix a bug in the main menu/sub menu. If I hover or move over the rightmost main menu item the appearing submenu has a offset of approx. 100px to the left. That depends of course also on the width of the browser window. But although the whole site is completely visual including a border/margin the submenu appears displaced...

Please help. Thanks in advance. :D
screenshot_submenu.jpg
User avatar
Junior Boarder

GK User
Wed Jul 25, 2012 10:04 am
The standard width of the site is 1100px.
User avatar
Junior Boarder

GK User
Mon Aug 13, 2012 7:22 am
anyone out there?
User avatar
Junior Boarder

GK User
Mon Aug 13, 2012 7:52 am
Can you please post a link to your website if its online. Thank you.


See you around...
User avatar
Platinum Boarder

GK User
Tue Aug 14, 2012 2:14 pm
User avatar
Junior Boarder

GK User
Wed Aug 15, 2012 4:16 am
Which browser are you using as I didn't see any problems with Firefox.

See you around...
User avatar
Platinum Boarder

GK User
Wed Aug 15, 2012 6:44 am
normally Safari for OS X. But the same offset in Firefox (version 14.0.1) and Chrome (version 21.0.1180.79). I'm not sure if I pointed out clearly the misbehavior of the main menu/sub menu. If you click e.g. at the main menu "Leistungen" the submenu appears straight under the main menu point. But not if you click at "Kontakt" (the rightmost menu point). There is an offset to the left, depending of the width of the browser window.

safari.png

firefox.png

chrome.png
User avatar
Junior Boarder

GK User
Wed Aug 15, 2012 11:33 am
I guess programmers done it that way so menu is visible when browser view is smaller then template width.
You can enforce original layout by using below css code in css/override.css and enable css override from template settings > advanced settings > css override "on".

Code: Select all
#gkMainMenu > div > ul > li > div.childcontent { margin-left:35px!important;}


Also your home menu > sub menu is out of line, use below css code
Code: Select all
.first div.childcontent { margin-left: 15px !important;}


See you around...
User avatar
Platinum Boarder

GK User
Mon Sep 03, 2012 10:13 am
thank you for your help. this is the solution. Personally I find the old behaviour better, but my client wants the override solution...
normanUK wrote:Also your home menu > sub menu is out of line, use below css code
Code: Select all
.first div.childcontent { margin-left: 15px !important;}


I can't find this wrong code line. Where is it?
User avatar
Junior Boarder

GK User
Tue Sep 11, 2012 11:42 am
That line is a custom css which you can add in your override.css. If you don't see any problem at the moment don't use it.

See you around...
User avatar
Platinum Boarder


cron