Hello! I am looking for coding to add vertical lines to the mega menu on desktop.
like this:
A user seeks CSS code to add vertical dividing lines between columns in their desktop mega menu.
Proposed Solution:
.site-nav__dropdown with flexbox display.grid__item:not(:last-child) elementsCurrent Status:
The suggested code did not work for the original poster. A community member requested the store URL and password (if applicable) to provide further troubleshooting assistance. The store URL was shared (cheluxboutique.com), but the issue remains unresolved.
Hello @chelux ,
Here is our suggestions:
.site-nav__dropdown {
display: flex;
}
.site-nav__dropdown .grid__item:not(:last-child) {
border-right: 1px solid #ccc;
padding-right: 20px;
margin-right: 20px;
}
You can adjust the color of the lines by changing the #ccc value, and you can adjust the spacing between the columns by changing the padding-right and margin-right values.
Save and preview.
Hope this can help you out.
Ali Reviews team.
Hi,
Please share your store URL and if your store is password protected then also provide password too.
Thank you.
Unfortunately, this did not work.