Skip to main content
1-Visitor
July 28, 2021
Solved

custom label css not working

  • July 28, 2021
  • 2 replies
  • 1248 views

Hi ,

 

I am trying to call myLabelClass from the custom css in the property of the label.

But there is not success in this.
could someone help me out with this.

 

MK_9986318_0-1627480582532.png

MK_9986318_1-1627480626883.png

MK_9986318_2-1627480707804.png

 

Best answer by DmitryTsarev

Try adding !important after style properties, e.g.

 

.fonttest-style .widget-ptcslabel {
 font-size: 30px !important;
 color: #FF0000 !important;
}

 

2 replies

17-Peridot
July 28, 2021

Try adding !important after style properties, e.g.

 

.fonttest-style .widget-ptcslabel {
 font-size: 30px !important;
 color: #FF0000 !important;
}

 

17-Peridot
August 3, 2021

Hello MK_9986318

 

Try this:

 

.myLabelClass .widget-ptcslabel:not([no-wc-style]) {
    color: #003DA5;
    margin: 0;
}

 

I believe it will work like you expect.

 

Regards,

Peter