title: How to inherit css styles in child component from parent in Angular 5
body: <p>I have a parent component inside which I have a child component. The parent component have some css classes, where child component extends them. I tried to use :host as looking at documentation, but cant't seem to get it work properly.</p>
  
  <p>child component:</p>
  
  <pre><code>&lt;div class="table-row body"&gt;
  &lt;div class="table-cell body-content-outer-wrapper"&gt;
      &lt;div class="body-content-inner-wrapper"&gt;
          &lt;div class="body-content"&gt;
              &lt;div&gt;This is the scrollable content whose height is unknown&lt;/div&gt;
              &lt;div&gt;This is the scrollable content whose height is unknown&lt;/div&gt;
              &lt;div&gt;This is the scrollable content whose height is unknown&lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>parent component:  </p>
  
  <p></p>
  
  <pre><code>         &lt;div class="table container"&gt;
                   &lt;div class="table-row header"&gt;
                          &lt;button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo"&gt;Simple collapsible&lt;/button&gt;
                          &lt;div id="demo" class="collapse"&gt;
                              Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
                              Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
                          &lt;/div&gt;
                    &lt;/div&gt;
              &lt;app-child-component&gt;&lt;/app-child-component&gt;
                  &lt;/div&gt;
  </code></pre>
  
  <p>parent component css:</p>
  
  <pre><code>  :host  .table {
      display: table;
    }
  
    :host .table-row {
      display: table-row;
    }
  
    :host .table-cell {
      display: table-cell;
    }
  
    :host .container {
     width: 400px;
     height: 100vh;
    }
  
    :host  .header {
      background: cyan;
   }
  
     :host .body {
      background: yellow;
      height: 100%;
   }
  
    :host .body-content-outer-wrapper {
      height: 100%;
   }
  
   .body-content-inner-wrapper {
      height: 100%;
     position: relative;
     overflow: auto;
  }
  
   .body-content {
      position: absolute;
     top: 0;
     bottom: 0;
     left: 0;
     right: 0;
  }
  </code></pre>
  
  <p>The problem if even I put css classes inside the child component, the layout breaks just because there is a child-component template. So the main question is what is proper way for child to inherit extend css from parent component?</p>