Flexbox: How to prevent item from taking full width of container
16 November 2023 (Updated 16 November 2023)
Assuming your flex container’s flex-direction
is row
, you can apply the align-self: start
or align-self: end
property to prevent the flex item from taking the full width of its container.
Tagged:
CSS
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment