Not able to apply the Styles | Community
Skip to main content
Level 3
September 24, 2020
Solved

Not able to apply the Styles

  • September 24, 2020
  • 1 reply
  • 811 views

Hi,

 

I have set style on Teaser Policy but when I am using it, styles are not appearing.

 

Can you suggest what can be the reason??

 

 

Thanks,

Heena

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijayalakshmi_S

Hi @heena06,

Cross verify the below

  • Style class associated for the style named "Card" (per your screenshot) in component policy is added without "." - It is just the CSS class name as defined in your project specific clientlibs (as highlighted in below screenshot)
  • Project specific clientlibs is loaded (In particular, style for the class you have used)
  • As an immediate step, inspect the component and check if class name is applied on the desired element (as evident from Network -> Elements Tab) and hence its CSS properties 

1 reply

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
September 24, 2020

Hi @heena06,

Cross verify the below

  • Style class associated for the style named "Card" (per your screenshot) in component policy is added without "." - It is just the CSS class name as defined in your project specific clientlibs (as highlighted in below screenshot)
  • Project specific clientlibs is loaded (In particular, style for the class you have used)
  • As an immediate step, inspect the component and check if class name is applied on the desired element (as evident from Network -> Elements Tab) and hence its CSS properties