hover: font color

Tagged: 

This topic contains 4 replies, has 3 voices, and was last updated by  Sebastian 1 month, 2 weeks ago.

Author Posts

jjjas

Hello Sebatian,
I hope you had a good weekend.
Please see: https://youtu.be/8H11ZdpbEQQ

I manage it with BB font setting but I think it would be good to take a look maybe? (FYI. before, there was no ‘hover’ font color setting on BB)

No urgent at all.
Thanks!

Jasmin

PS. If you need, the credentials are the same.


Sebastian

Hey Jasmin,

I see that you managed to make the text dark when the button turns white hover in Beaver Builder. And if I understand you correctly, you want to understand why you were having some issues doing this in Microthemer. Having looked at your site I can guess why – the button is made of two elements. A link element for the main area of the button. And a child span element nested inside the link element. The span element wraps around the button text, and has independent styling. The font color for the button text was set to be white. This was overriding whatever font-color value you were setting on the link element. And so the solution would have been to create a selector for button text in Microthemer:

Target inner button text element

Does that make sense?

Cheers,
Sebastian

P.S. our educational note on nested HTML elements covers this issue.


jhbragg

I am not able to get Microthemer to change the colour of the dropdown background and the hover colour on the header navbar. I am obversely not doing something right. I would appreciate any help to point me in the right direction.
Thank you,
James


Sebastian

Hi James,

Sure, I’m happy to help. Could you either send me a link to your site or access details via our secure contact form if you would like me to show you how it’s done via the Microthemer interface.

Thanks,
Sebastian


Sebastian

Thanks for sending access details.

You had almost created the right selector for setting the background and text color for the dropdown menu item on hover – the selector called ‘Dropdown item‘. However, to make the selector target the dropdown items on hover, you needed to enable :hover via the CSS modifiers menu. This video shows how to create a hover selector.

I also noticed that you created a number of selectors for targeting individual dropdown menu items e.g. Menu item 1909 link. These selectors included an id (e.g. #menu-item-1909) and so have higher CSS specificity than your general ‘Dropdown item‘ selector, which means they would override styles applied to the ‘Dropdown item‘ selector. It’s better to style multiple related elements with one selector where possible. And because the extra selectors you created for individual dropdown items had potential to cause confusion, I have disabled them all:

disabled single selectors

I moved the selectors you should keep to the Main Menu folder. You will also notice that I created some hover selectors for you, which you can now customize. I recommend that you delete the disabled selectors in the Header folder. I just wanted to keep them there for you to see.

I hope that helps. Please let me know if you need further assistance.

Thanks!

Sebastian

You must login or register to reply to this topic.