- This topic has 17 replies, 3 voices, and was last updated 6 years, 1 month ago by Tom.
-
AuthorPosts
-
March 7, 2018 at 10:42 am #514112dasigna
hi tom and leo,
struggling with another idea to realize for a couple of hours already π
i am trying to achieve sort of mixed boxed and stretched main navigation on desktop; means, the idea is to have the navigation container stretched to the right side, but boxed on the left …
complicated?? sort of.
hard to explain. boxed means to have the navigation at the width of the main container, full width expands to both sides of the screen… but the idea is to have this only on the right side. kind of banner that comes from the right.currently no idea how to tweak this, all attempts failed so far – so any hint or help is appreciated.
thanks in advance.
March 7, 2018 at 3:49 pm #514268LeoStaffCustomer SupportHi there,
Can’t really picture what you are going for.
Do you have an example from other site to share?
March 8, 2018 at 5:02 am #514586dasigna… feared it sounds a bit complicated π
heres a basic mockup:
hope that helps for understanding?
March 8, 2018 at 10:27 am #514951TomLead DeveloperLead DeveloperSo you want your navigation to start at the left of the container, and stretch all the way to the right outside of the container?
March 8, 2018 at 10:36 am #514953dasignahi tom,
… yes that the intention basically. only stretching outside the right of the container till the screen border.
feels like it should be doable, but so far unable to target the right selectors.
March 8, 2018 at 8:29 pm #515263TomLead DeveloperLead DeveloperDo you have something set up that I can play with? It might be do-able using pseudo elements, but I’m not 100% sure.
March 9, 2018 at 2:20 am #515423dasignahi tom,
thanks for looking – credentials are on their way via mail.
March 9, 2018 at 9:59 am #515785TomLead DeveloperLead DeveloperSo the first thing you’ll want to do is set your navigation to contained.
Then add this CSS:
.main-navigation { position: relative; } .main-navigation:after { content: ""; height: 62px; background: #fff; width: 5000px; left: 100%; top: 0; position: absolute; visibility: visible; } body { overflow-x: hidden; }
March 9, 2018 at 11:52 am #515884dasigna…!
i am still after the details how exactly this works… but in fact it works like a charm!!
already tried with pseudo elements, but no chance for me to figure out.tom – this is great. really happy π
thanks again and kudos, honestly.
March 9, 2018 at 9:14 pm #516101TomLead DeveloperLead DeveloperYou’re welcome! Glad I could help π
March 17, 2018 at 11:11 am #522492dasignahum …
sorry having to pull this up again, but – after the need of submenu items this great piece of code cause some trouble:
first i had to tweak it because it caused a heavy horizontal scrollbar on page that doesnt make use of the merged header. so the ‘generate-combined-header’ selector before the first part fixed it, and the menue was o.k. with no scrollbar on pages without merged header.but now with submenu items set to show upon hover this simply does not take place because of the ‘overflow-hidden’ in second part of the css that refers to the ‘generate-combined-header’ …
again – the submenu items show as expected on pages with no merged header.
any further hint to get this solved?? maybe you might have a look again. thanks in advance.
i know i tend to get into trouble with the menu tweaking thing – sorry for that π
March 17, 2018 at 9:00 pm #522753TomLead DeveloperLead DeveloperI just adjusted the CSS above – should be good to go now π
March 19, 2018 at 2:49 am #523481dasignahi tom,
… sadly doesnt resolve it.
causes a small second scrollbar at the height of the header/nav on nav item hover, but submenue still neighter showing nor reachable.one of those things i tried already with no luck.
my thought at first was: as the generate-combined-header selector is quite high, there must be a way to exclude the one for the sub-menu? but still not able to figure it out.???
March 19, 2018 at 10:06 am #523824TomLead DeveloperLead DeveloperCan you remind me of the URL?
March 19, 2018 at 10:30 am #523841dasignacredentials for construction site on the way via mail.
-
AuthorPosts
- You must be logged in to reply to this topic.