Not able to apply the Styles | Community
Skip to main content
Level 3
Sep 24, 2020 11:01 AM UTC
Solved

Not able to apply the Styles

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.
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Sep 24, 2020 1:39 PM UTC

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
Sep 24, 2020 1:39 PM UTC

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 

Translate