CSS - Change Margin of a Menu's Items..?

18 views Asked by At

I'm quite new to CSS but currently need it to solve an issue with a website builder.

I have a horizontal menu (hmenu) on my page, which can also contain submenu items. However, these are spaced far apart (20px margin top and bottom).

MenuItem-Sub Margin Problem

MenuItem-Sub Margin

MenuItem Padding

Now, this is the output from Chrome's source code display... Specifically... the hmenu and the (sub-)menu items.

As the website builder does not offer an option to set the margin per submenu item, I need to solve this with custom CSS.

Can someone help me and tell me how to change the margin of the submenu items, as well as the padding of the main menu items?

I'm inexperienced in CSS and only doing this out of necessity. I have absolutely no idea where to start with this.

0

There are 0 answers