Browsers: Yeah, but beware of limited availability, most of those creative examples are in the 40-50% browsers support range.
Modern CSS Code Snippets: Stop writing CSS like it's 2015
11–20 of 318 posts
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#12CSS and JavaScript are like two dysfunctional law enforcement agencies fighting over jurisdiction.
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#13CSS in 2025: Let's write html inlined styles as if it was 2005 and separation of formatting/representation was never invented. I talk of tailwind, of course.
Yeah let's do that. You have everything related to your component on place instead of jumping between files.
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#14Me: cool, let's be creative, I love 2026. Browsers: Yeah, but beware of limited availability, most of those creative examples are in the 40-50% browsers support range.
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#15Earlier quoted context omitted.
Yeah let's do that. You have everything related to your component on place instead of jumping between files.
Is jumping between files supposed to be difficult or something?
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#162015 is good enough. For example instead of grid center, one can use flex and margin auto. If you are building really nation-wide products, there are still a lot of guys in corporate with old windows (where even chrome stopped updating like win7). Or, you know, old or poor people with PC from 2008. Also don’t forget guys with mobile phones: not like one could easily install a browser there. Especially on phones which…
I definitely don't agree with all of these, but grid centering is pretty nice and has a lot fewer quirks than Flexbox based solutions.
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#17Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#18Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#19CSS in 2025: Let's write html inlined styles as if it was 2005 and separation of formatting/representation was never invented. I talk of tailwind, of course.
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#20CSS in 2025: Let's write html inlined styles as if it was 2005 and separation of formatting/representation was never invented. I talk of tailwind, of course.
At least html and CSS are both presentation. React/JSX now confuses presentation and business logic.