We Completely Missed width/height: stretch

AI Summary1 min read

TL;DR

The stretch value for width/height acts like 100% but ignores padding when calculating available space, a detail that was previously overlooked.

Tags

Articlesbox modelcss propertieslayout

The TL;DR is that stretch does the same thing as declaring 100%, but ignores padding when looking at the available space.


We Completely Missed width/height: stretch originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.

Visit Website