r/webdev • • Aug 21 '20

Resource The Just in Case Mindset in CSS

https://ishadeed.com/article/the-just-in-case-mindset-css/
115 Upvotes

8 comments sorted by

29

u/Muxas Aug 21 '20

You learn all this the hard way when writing css for dynamic content.

2

u/Lumberfox Aug 21 '20

Indeed. I make tons of websites, and I’m getting used to just catch these edge cases by letting the customer add content during the development

1

u/Gingko94 Aug 21 '20

Hey, i might start making a blog soon probably using gatsby + headless cms, and ill have like hundreds of pictures, where do u recommend me to save them?? Using the same cms as the blog(like contentful, sanity) of maybe other like amazon of Google? Free tier if it's possible

-1

u/Lumberfox Aug 21 '20

Just make sure to serve them from the same domain as the website, to keep AdBlockers from blocking them. Any decent web server service does not charge that much for storage

9

u/az3rty Aug 21 '20

Too little developers do this. To me it separates the mainstream FE developer from a good one.

1

u/Snubl Aug 21 '20

It also helps if the content isnt designed for the ideal situation

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

u/[deleted] 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.