Hi Larry,
Are you making sure it comes after the declaration it is trying to override in 
the CSS cascade? 

Also, the style attribute trumps all with important added. You said you tried 
it there and it didn’t override?

Best,
Karl

Sent from losPhone

> On Feb 25, 2021, at 1:11 PM, Larry Martell <larry.mart...@gmail.com> wrote:
> 
> In an app I am working on there is this global CSS:
> 
> #preview div#results_holder table:not(.other-table),
> #preview div#results_holder div.results_holder table:not(.other-table) {
>    margin-top: 0px !important;
> }
> 
> On one page I want to have a top margin of 50 on an element with id
> results_holder.
> 
> I have tried putting the style on the element itself, and also tried
> adding an ID to it and adding this:
> 
> #preview div#CFA_results_holder {
>  margin-top: 50px !important
> }
> 
> But neither one takes. How can I override the top margin just for this
> one element?
> ______________________________________________________________________
> css-discuss [css-d@css-discuss.org]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [css-d@css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to