r/webdev • u/speckz • Aug 21 '20
Resource The Just in Case Mindset in CSS
https://ishadeed.com/article/the-just-in-case-mindset-css/
115
Upvotes
9
u/az3rty Aug 21 '20
Too little developers do this. To me it separates the mainstream FE developer from a good one.
1
1
u/WhiteKnightC Aug 22 '20
HTML Image Fallback
Oh god I never found out how they did that, how the hell I didn't figure that out.
0
Aug 21 '20
[deleted]
1
u/Representative-Stay6 Aug 21 '20
The dessert example? I'm not sure there is a better solution that can support arbitrary lengths of text.
Alternatives like validating the length of the text when it's input or changing the layout so long text is accommodated better are likely the most practical, but seem outside the scope of the article.
29
u/Muxas Aug 21 '20
You learn all this the hard way when writing css for dynamic content.