Mine's display: flex, flex-direction: row, justify-content: space-between
My favourite 3 lines of CSS
11–20 of 87 posts
Re: My favourite 3 lines of CSS
#12Re: My favourite 3 lines of CSS
#13I am increasingly worried about the “smart” CSS solutions. The spec is already huge, the selectors are hard to read and google, the interplay between various features is devilishly complex. And the CSS community seems to be very fond of these smart hacks where people in the know say “Oh, that’s just Foo’s variation on Bar’s flex owl hammer” and you are left to study the CSS lore for hours to decrypt the two or three…
Re: My favourite 3 lines of CSS
#14Re: My favourite 3 lines of CSS
#15It’s amazing that CSS has such advanced features that can do these things, but at the same time if you actually use them extensively and then I inherit your code, you kind of deserve a knifing.
Worst thing is the comment (if there's any) is probably something like /* lobotomized owl typography*/
Re: My favourite 3 lines of CSS
#16Mine's display: flex, flex-direction: row, justify-content: space-between
Re: My favourite 3 lines of CSS
#17We get so much power from just setting global scoped styles like this it's so strange to me that more of these patterns aren't common or included in minimal css frameworks. With all the recent criticism of tailwind, css-in-js, and other bloated frameworks I truly feel like 90% of projects could get away with a handful of sensible global styles or "classless css" and then aggressive use of components with scoped style…
Re: My favourite 3 lines of CSS
#18I am increasingly worried about the “smart” CSS solutions. The spec is already huge, the selectors are hard to read and google, the interplay between various features is devilishly complex. And the CSS community seems to be very fond of these smart hacks where people in the know say “Oh, that’s just Foo’s variation on Bar’s flex owl hammer” and you are left to study the CSS lore for hours to decrypt the two or three…
Re: My favourite 3 lines of CSS
#19Mine's display: flex, flex-direction: row, justify-content: space-between
Re: My favourite 3 lines of CSS
#20It’s amazing that CSS has such advanced features that can do these things, but at the same time if you actually use them extensively and then I inherit your code, you kind of deserve a knifing.