Within my app.component.css file, I currently have the following code snippet:
* ~ * {
margin-top: 24px;
}
This rule actually adds some top margin to all elements that come after the first one. However, this is not exactly what I intend to achieve. My goal is to only target the direct children of the host element.
To try and accomplish this, I made the following adjustment :
:host > * ~ :host > * {
margin-top: 24px;
}
Unfortunately, this modification does not seem to have any effect. What could I be overlooking in this situation?