Custom CSS works in Preview but not when published

  • 28 December 2017
  • 1 reply
  • 1 view

Badge +9

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; 

}

1 reply

Badge +9

solved it with !important tag.

  background:#FFB81C !Important;

Reply