Nav menu items not tking full hight of parent container.
I am making a navbar and i am facing this issue in dropdown, when i hover over the link then sub menu is not falling below header,i believe this is because the nav items are not taking full height of parent container,and i dont want to use absolute value.
i have attached images for reference.and also code pen link for code reference.
https://codepen.io/deepaka34196835/pen/OJGaeOR
7 Replies
Hi! Do you mean full width, right?
No the length of the links
You can add property and change width to 100% value.
Ah ok
If you check the above images the ul height is not taking entire header space
So when i am adding dropdown to it then it not falling beloq the header border
Ok. So you have an 80px height on header-customize-item account item in header-ct-right. I think you should add same height on the ul.menu-primary-menu or 100% height in its containers. Also add the align-items: center flex property in that to vertically center the nav items.
If you want that nav items have the same height, simply add a 100% height too and maybe a flex align-items and it's done 🙂
Thanks i will try that
@stillmorris i tried adding 80px on parent and 100% on container but its moving all the nav links to top.
Even after applying allign item center the links are not certically aligning to center.
Hi. I'm show you how I would do it.
Also there is a link before Resources that I think it's not supposed to be there.
Have a great night!