How do I specify a particular CSS class to use?

Viewed 58

I have an html block that looks like this:

<div id=“stage”>
     <div class=“ticker universal”>
    …
     </div>
</div>

With css for the classes looking like so:

#stage {
    position: absolute
}

.ticker.universal { 
        
    position: relative;
}

The issue I'm having is that the .ticker.universal position property is getting overriden by #stage position property. when I look at the elements in the browser console, the positon for .ticker.universal is actually striked out.

I have tried adding !important to .ticker.universal postion, it worked but I'm trying to avoid using !important.

Please what other way can I resolve this issue?

1 Answers
Related