Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
V99
on Aug 16, 2024
|
parent
|
context
|
favorite
| on:
CSS Grid Areas
The way to go with this is to still use a grid, but make the row/col values be css variables ( "var(--foo)" ) instead of fixed values.
Then you can update the value of just that variable from JS, and the grid will reflect it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Then you can update the value of just that variable from JS, and the grid will reflect it.