Normally I do fairly well at fixing simple CSS issues, but I am still unfamiliar with the Pro header builder code and need help with a hover interaction in my main nav.
My site is here. Here is the problem:
My custom CSS here:
.x-bar-absolute .x-anchor-text-primary { color: #fff;} <–Taken from another forum thread I want a transparent nav/white text when scroll top=0
is being overridden by this header builder css:
.hm5.x-menu > li > .x-anchor .x-anchor-text-primary {color: #999}
If I add !important to my CSS then it overrides the following CSS, even though I’ve scrolled down and .x-bar-fixed has been added by the builder:
.x-bar-fixed .x-anchor-text-primary {color:#999} <–Taken from another forum thread I want an opaque nav/grey text when scroll top>0
But then if I add !important to the line above then my hover CSS gets overridden.(I want white text/blue background on hover)
When I then add !important to my hover declaration, depending on how I do it, either the text will only change color on hover when the text itself is hovered, but not when the button area around the text is hovered, or it just doesnt work at all:
.x-bar-fixed .x-anchor-text-primary { color: #fff!important;}
I’d prefer not to use all these !important declarations in the first place. I also dont understand why, when the class .x-bar-fixed gets added why the previous css using .x-bar-absolute is still overriding it.
I also dont understand why adding !important to a :hover declaration overrides the non-hovered font color.
So after trying many different permutations I still can’t get this to work properly. Thanks for your help.
