- This topic has 7 replies, 3 voices, and was last updated 5 years, 9 months ago by David.
-
AuthorPosts
-
July 11, 2018 at 3:52 am #620923Jai Hari Shankar
Hi there.After i added the secondary menu hover border,if i just hover over it,the below section shakes a little bit.
You can check it in the below link.July 11, 2018 at 6:01 am #620998DavidStaffCustomer SupportHi there, not a problem, borders applied that way will expand the container, an alternative method would be this CSS:
.main-navigation .menu>.menu-item>a:hover:after { content: ""; position: absolute; right: 50; left: 50%; bottom: -1px; -webkit-transform: translateX(-50%); transform: translateX(-50%); display: block; width: 80%; height: 2px; background-color: currentColor; -webkit-transition: 0.3s width ease; transition: 0.3s width ease; }
July 11, 2018 at 6:53 pm #621583Jai Hari ShankarThanks a lot.First of all i asked for secondary navigation,than why you are sending main navigation code.
As per your given code i deleted first line and its working.
here is the code.secondary-navigation .menu-item>a:hover:after { content: “”; position: absolute; right: 50; left: 50%; bottom: -1px; -webkit-transform: translateX(-50%); transform: translateX(-50%); display: block; width: 80%; height: 2px; background-color: #000000; -webkit-transition: 0.3s width ease; transition: 0.3s width ease; } }
Just let me know is this code right ?? Its working without jerk now though.
July 11, 2018 at 9:08 pm #621640TomLead DeveloperLead DeveloperLooks good to me. You can just replace
.main-navigation
in the code David supplied with.secondary-navigation
.July 11, 2018 at 9:15 pm #621644Jai Hari ShankarYES TOM i have done tha.Now i am facing a new issue.I applied the background image for primary navigation but it is not coming to the full width.I applied with 4000 px width image and 2000 px image it is not coming to full width.KINDLY CHECK IN BELOW LINK
July 11, 2018 at 9:21 pm #621649TomLead DeveloperLead DeveloperI’m not seeing a background image currently, but you’ll need to use your navigation as your header to make it go full width: https://docs.generatepress.com/article/navigation-logo/#navigation-as-header
July 11, 2018 at 9:48 pm #621663Jai Hari ShankarTom i have used the navigation as you said above and now my image displays properly but i dont want my logo inside it.I followed your https://docs.generatepress.com/article/navigation-logo/#navigation-as-header but still its not what i want.I want it completely leftside- outside the primary navigation.Please refer to this website for example-https://www.premierleague.com/ .So far i have change my website.Kindly check-https://stockwizaards.com
July 12, 2018 at 4:56 am #621854DavidStaffCustomer SupportThis is related to this topic:
https://generatepress.com/forums/topic/primary-navigation-menu-going-outside-its-background-image/
If you can decide which topic to keep the thread going please. And please close the others as resolved. It’s getting very confusing 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.