cmikhaiel_e
Scout

Custom CSS works in Preview but not when published

Jump to solution

We have a custom CSS applied to a radio button, that should change the label background color when selected.

It works perfectly fine in "Preview mode" but when we published the form it only picks the font color (white) and not the background color. The background color stays as the original one;grey.   [if IE 9]  [endif]

Any idea why this could be happening?

.customtab input[type=radio]:checked ~ label { 

    background:#FFB81C;  
    color: white;
    border-bottom: 1px solid white; 
    z-index: 2; 

}
0 Kudos
Reply
1 Reply
cmikhaiel_e
Scout

Re: Custom CSS works in Preview but not when published

Jump to solution

solved it with !important tag.

  background:#FFB81C !Important;

0 Kudos
Reply