- This topic has 9 replies, 3 voices, and was last updated 3 years ago by Skandha.
-
AuthorPosts
-
January 17, 2021 at 3:19 pm #271234Dirk FritscheParticipant
Hey Team,
Happy new year to ya all.Just some short questions about CSS Coding for further Menu Customization. See my attached image and the numbers 1) to 3).
1.1) How can I change the Background to another color.
1.2) How can I change the background color to 50% opacity.
Remark: I only want to make these changes to the dropdown-menu, not the main-menu itself.2) How can I change the Color and size of the Border around the Dropdown-box
2.2) How can i change the box width -> Noch Fragen3) How can I apply a hover effect regarding the text color (e.g. if i hover over the menu-item “Grafikdesign” the text shall be red)
4) How can I reduce the distance between the Dropdown-Menu and the Main-Menu.
Thanks for helping out.
BR Dirk
January 18, 2021 at 2:28 am #271279SkandhaParticipant@five-birds: Hello Dirk,
Can you please post in your site URL so that I can look into the issue?Kind Regards,
SkandhaJanuary 18, 2021 at 2:56 am #271284Dirk FritscheParticipantHi Skandha,
the page URL is http://www.5bp.deBR Dirk
January 18, 2021 at 2:59 am #271285Dirk FritscheParticipantIt seems, that my image i prepared was not uploaded properly:
January 18, 2021 at 3:32 am #271286Dirk FritscheParticipantJanuary 18, 2021 at 11:51 pm #271397SkandhaParticipant@five-birds: Hello Dirk,
Go to => Appearance => Customize => Additional CSS and add the following CSS Code./* To change the opacity of background color of the submenu and change border size and color */ .navigation-classic .main-navigation ul ul { background-color: rgba(0,0,0,0.5); border: 1px solid #f23456; } /* To change text color on hover */ #primary-menu li a:hover { color: #bc2b25; } /* To reduce distance between main menu and sub menu */ .navigation-classic .main-navigation a { padding-bottom: 0px; }
Let me know if this solves the issues.
Kind Regards,
SkandhaJanuary 21, 2021 at 4:13 pm #271670Dirk FritscheParticipantHi Skandha,
As alway quick and proper support. Thank you very much. This was excactly what i was looking for (i couldn´t find the correct div handles).One last thing:
If you look in the dropdown menu with “Photo” the box underneath ich very wide. Is there a chance to reduce the width a bit ?
BR Dirk
January 22, 2021 at 1:29 am #271701SkandhaParticipant@five-birds: Hello Dirk,
Go to => Appearance => Customize => Additional CSS and add the following CSS Code..navigation-classic .main-navigation ul ul a { width: 150px; }
You can change the width according to your choice.
Let me know if this works out!
Kind Regards,
SkandhaApril 7, 2021 at 2:58 pm #279043brandtkiParticipantThis is great! Is there a way to change the primary menu font color?
April 8, 2021 at 8:01 am #279130 -
AuthorPosts
- The topic ‘Menu Customize’ is closed to new replies.