Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
erikschoster
on Nov 17, 2019
|
parent
|
context
|
favorite
| on:
CSS Utility Classes and “Separation of Concerns” (...
Add a class called "active" or similar, and write your css to target the element when that class is present.
.element.active { color: red; font-size: 30px; font-weight: 700; }
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: