Defensive CSS (@defensivecss) 's Twitter Profile
Defensive CSS

@defensivecss

Practical CSS and design tips that helps in building future-proof user interfaces. A project by @shadeed9

ID: 1469750361267359744

linkhttps://defensivecss.dev/ calendar_today11-12-2021 19:26:14

40 Tweet

6,6K Takipçi

1 Takip Edilen

Defensive CSS (@defensivecss) 's Twitter Profile Photo

It's a common mistake to use display: flex and forget about it. When the content gets longer, flex items will stretch to fill the parent. That's what happened to the image here. The fix is to use align-items or align-self depending on the use case. 🔗 defensivecss.dev/tip/default-fl…

It's a common mistake to use display: flex and forget about it. When the content gets longer, flex items will stretch to fill the parent.

That's what happened to the image here. The fix is to use align-items or align-self depending on the use case.

🔗 defensivecss.dev/tip/default-fl…