Help > Layout & Coding Help > Post Reply     

Navigation menu

Player Avatar
Eyre • hello spring
October 17th, 2019 8:25:27pm
9,803 Posts

How do I/What do I need to tweak in the navigation menu that will result in not seeing the purple drop down menu when you click on any one of the main links? It's lovely and all, but just not going with the greens. I don't have that purple color anywhere in my code so I must be missing something; I'm not sure what, though.




ZBfIYnq.png

 


View Comments 1


Player Avatar
↬ JADE
October 17th, 2019 8:47:38pm
3,782 Posts

That maroon color is the base BG color for the current autumn skin. Unless you specify a different color for this background, it will inherit the base skin's appearance.

In order to change this, just add the background: transparent!important; property to the appropriate content (or add a hexcode in place of transparent if you would prefer a background color instead).

It's necessary to add the !important modifier to this property because the base code already uses this. Without this modifier, the coding assumes the base code with this modifier is "more important" than your personal code. This is only necessary where the base code already uses it and not a general rule for everything. Typically your personal code will overwrite the base code in most circumstances.


Player CSS Example:

#nav ul {
background: transparent!important;
}


Let me know if this doesn't work or you have any other questions!




JtyYqQ.png

 

Player Avatar
Eyre • hello spring
October 17th, 2019 9:28:18pm
9,803 Posts

Oh! Sweet! That worked quite well! Thank you, Prynne!




ZBfIYnq.png

 

Player Avatar
↬ JADE
October 18th, 2019 1:57:46am
3,782 Posts

 You're welcome! (:




JtyYqQ.png

 

View Comments 1