I create a new theme for Magento 2 based on Luma theme. I change the submenu of the top navigation to be 100% width.
.navigation .level0 .submenu {
max-width: 1280px;
width: 1280px;
padding: 25px 0;
}
And now I want to change the submenu position, right now the submenu start right selected category, I need to made the submenu to start from left side.
I try to add position: absolute;
and left: 0;
but is not working.
How I can move this submenu to start from left side?
Thank you
Best Answer
.ui-menu-item
- change position toposition: static;
.navigation > .ui-menu
- change position toposition: relative;
It should do the trick ;)
UPDATE: To override it through css use this: