Replies

Mar 2, 2016 10 years ago
jeremycorbyn
is sweet
User Avatar

I'm trying to change the colour of spoilers. I found this useful thread, but my style is being replaced by inbuilt style sheets in a file somewhere that I don't have access too. I'm new to CSS although I have programming experience (Java), so I hope I'm not missing something really obvious!

You can see the problem in inspect element below:

For extra clarity this is the code I'm including:

.spoiler_click { background-color: ; }

Any idea how to fix this problem?

Mar 2, 2016 10 years ago
Silverfish
is a survivor
User Avatar
Xingese

Easy fix but easy to miss as well. You need this instead.

.spoiler_click { background-color: !important; }

User-added css usually takes precedence over default Subeta layout because of how css works, but this property happens to have !important tacked onto it by default overriding you. So you need to counter that with one of your own.

Art by p-sebae ❤️
| | -Night Mode- Shengui Guo Custom CSS [v2.0]

Looking to adopt a December 31st, 1969 glitched date pet

Mar 2, 2016 10 years ago
jeremycorbyn
is sweet
User Avatar

Thank you so much - it works perfectly now!

Mar 2, 2016 10 years ago
Silverfish
is a survivor
User Avatar
Xingese

anytime! c:

Art by p-sebae ❤️
| | -Night Mode- Shengui Guo Custom CSS [v2.0]

Looking to adopt a December 31st, 1969 glitched date pet

Please log in to reply to this topic.