Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Flimm
on Feb 11, 2024
|
parent
|
context
|
favorite
| on:
CSS Is Logical
I wish percentages in CSS were more explicit:
#foobar { width: 100% of container width; height: 100% of contents height; }
err4nt
on Feb 11, 2024
|
next
[–]
This exists, you can specify containers and then use 100cqw container query length percentage units
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_contain...
eviks
on Feb 11, 2024
|
prev
[–]
Same idea I had when commenting - this just needs some good old explicit reference (can be optional)!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: