Skip to content
All Challenges
#98

CSS Scoping (@scope)

Hard
Category: 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 Evaluation
Loading...
|
Live Browser Output
Sandboxed Preview