Topic.css overriding my dropdown styles
Topic.css overriding my dropdown styles
I have an interesting issue where the Topic.css file that is generated during a build is including a duplicate style class for the dropdown arrows, which is overriding the images I want. It's somewhat hard to explain, but instead of replacing the existing style class with my options, it's just creating a new one, which is then made null by the existing defaults. Any chance there is an easy fix to this without putting in a script to set the styles I want?
Chris Jones
Product Content Manager - TEAM Software
Product Content Manager - TEAM Software
-
- Sr. Propeller Head
- Posts: 189
- Joined: Mon Feb 22, 2016 9:18 am
- Location: Cincinnati, OH
Re: Topic.css overriding my dropdown styles
Theoretically, the styles you create and/or modify *should* override topics.css. That being said, I've seen oddball cases where topics.css takes precedent for an unknown reason (support can't even give me a clear answer on that).
In those cases, I will add an !important declaration to the end of each property that is being overridden. For example
Not really ideal, but at least it works.
In those cases, I will add an !important declaration to the end of each property that is being overridden. For example
Code: Select all
p.my-style
{
color: red !important;
margin-bottom: 10px !important;
}
Casey