Re:Use spacer components instead of CSS margins (2020)
by dreyfan on Tuesday January 04, 2022 @02:07AM
(#29792201)
mmm, spacer elements. the new 1999 is looking pretty awesome.
[ Parent
| on HN ]
Re:Use spacer components instead of CSS margins (2020)
by Falkon1313 on Tuesday January 04, 2022 @02:15AM
(#29792246)
"Oh it's out of alignment again? Just add a few more spacer.gifs in that table cell. This design was so great until we let people edit the content."
Re:Use spacer components instead of CSS margins (2020)
by ratww on Tuesday January 04, 2022 @04:49AM
(#29793082)
Spacer components described in the article and 90s spacer elements are not the same thing.
Here's the example linked by the article: https://seek-oss.github.io/braid-design-system/components/St...
Re:Use spacer components instead of CSS margins (2020)
by ncann on Tuesday January 04, 2022 @02:10AM
(#29792220)
Let's use <br> for vertical separation, just like the good old days!
Re:Use spacer components instead of CSS margins (2020)
by speedgoose on Tuesday January 04, 2022 @02:27AM
(#29792314)
Let's code all the apparence in the class attribute (instead of the style).
Re:Use spacer components instead of CSS margins (2020)
by diordiderot on Tuesday January 04, 2022 @02:59AM
(#29792484)
We do, its called tailwindcss lol (and its amazing)
Re:Use spacer components instead of CSS margins (2020)
by speedgoose on Tuesday January 04, 2022 @03:55AM
(#29792757)
Yes that was the joke (and I'm not a fan of it).
Re:Use spacer components instead of CSS margins (2020)
by knowfilter on Tuesday January 04, 2022 @01:28PM
(#29798145)
You didn't get the memo? We moved the style attribute inside the class attribute now
https://tailwindcss.com/docs/adding-custom-styles#arbitrary-...
Re:Use spacer components instead of CSS margins (2020)
by diordiderot on Tuesday January 04, 2022 @07:45PM
(#29803284)
Dear God
Re:Use spacer components instead of CSS margins (2020)
by cm-t on Tuesday January 04, 2022 @03:45AM
(#29792699)
That's so sarcastic, when you use proper <table>,<tr>,<td> in your html, you don't need <br>
⸮