Topic.css overriding my dropdown styles

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
chrisj
Propeller Head
Posts: 87
Joined: Thu Jun 26, 2014 8:08 am
Location: Omaha, NE

Topic.css overriding my dropdown styles

Post by chrisj »

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
Image
cdschroeder
Sr. Propeller Head
Posts: 189
Joined: Mon Feb 22, 2016 9:18 am
Location: Cincinnati, OH

Re: Topic.css overriding my dropdown styles

Post by cdschroeder »

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

Code: Select all

p.my-style
{
    color: red !important;
    margin-bottom: 10px !important;
}
Not really ideal, but at least it works.
Casey

Image
Post Reply