The stretch keyword in CSS offers a simpler alternative to the commonly used width: 100%, allowing elements to stretch to fill the available width while maintaining margins. This property, which also extends to height and flex-basis, requires vendor prefixes for broad browser compatibility but is expected to be standardized soon.

3m read timeFrom fullystacked.net
Post cover image
Table of contents
Browser supportSidenote on width: auto

Sort: