All Challenges
#98
CSS Scoping (@scope)
HardCategory: Modern CSS
Scope styles to .card-component excluding .card-body using @scope (.card-component) to (.card-body).
Target HTML in preview:
<div class="card-component"><h2>Header</h2><div class="card-body">Excluded</div></div>
Verification Criteria:
Define @scope (.card-component) to (.card-body)
styles.css
Live EvaluationLoading...
|
Live Browser Output
Sandboxed Preview