3 ms·
I wish percentages in CSS were more explicit: #foobar { width: 100% of container width; height: 100% of contents height; }
by Flimm 3y ago
I wish percentages in CSS were more explicit:
#foobar {
width: 100% of container width;
height: 100% of contents height;
}
- eviks 3y agoSame idea I had when commenting - this just needs some good old explicit reference (can be optional)!
- deleted 3y ago[deleted]
- err4nt 3y agoThis exists, you can specify containers and then use 100cqw container query length percentage units https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries#container_query_length_units https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_contain...