Renew stack remove lines in sub menu

Hello there,

Please could you help me to remove the light grey lines that appear in the sub-menu (dropdown) - i’ve looked in the dev tools for an hour to try and see where they come from but cannot see their origin.

It would also be great to put a small box shadow around the submenu block, if you could let me know which element to target in the CSS - thank you.

Best regards,
Carin

Hello Carin,

Thanks for asking. :slight_smile:

You can add following CSS under X > Theme Options > CSS:

.x-navbar .desktop .sub-menu li:before, .x-navbar .desktop .sub-menu li:after{background-color: transparent;}

ul.sub-menu {
    box-shadow: 2px 4px #888888;
}

If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Thanks.

Thank you very much for that - it did the trick.
Usually i can help myself with CSS and trying to figure out what to target by looking at dev tools - but this one had me stumped - thank you for the help :slight_smile:

We are glad to help and you are welcome :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.