[Tip : Angular + CSS] Make styling work

when working with angular if you apply styles just with id or class, it may not apply..

Suppose there is <div> or any element and you want to apply style class general , usually we define css class as below.

.general {   
   padding-top : 2px;   
   padding-bottom : 0px; 
} 

And you see no result, to make it work replace above style with below snippet.

:host /deep/ .general {
  padding-top : 2px;
  padding-bottom : 0px;
} 

2 Comments

  1. I’m very happy to dijscover this page. I need to to thank you for ones time
    just for thius fantastic read! I definitely really liked every
    little bit oof it andd I have you bookmarked to check out new things in youir blog.

Leave a Reply

Your email address will not be published. Required fields are marked *

1 × two =