Expand my Community achievements bar.

SOLVED

Not able to apply the Styles

Avatar

Level 3

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??

 

Heena06_0-1600945138998.png

 

Thanks,

Heena

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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 

Vijayalakshmi_S_1-1600954712419.png

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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 

Vijayalakshmi_S_1-1600954712419.png