News for hackers. Stuff that matters.
Re:Rebuilding a featured news section with modern CSS: Vox news by bigfoot675 on Sunday April 30, 2023 @02:19PM (#35765166)
Or maybe you have just gotten better after doing it for 20+ years? I can't imagine anything being easier than plain HTML and CSS
Re:Rebuilding a featured news section with modern CSS: Vox news by nicoburns on Sunday April 30, 2023 @02:37PM (#35765327)
> I can't imagine anything being easier than plain HTML and CSS

Well you can still make websites with plain HTML and CSS today, and the layout modes (and other niceties like border-radius) that are available today so are much nicer than the ones that were available 20 years AND they work the same in every browser!

20 years ago you were cobbling together layout with tables and floats (you didn't even have `display: inline-block`). And people still wanted vaguely responsive layouts even though there weren't any media queries yet. Plus there were 3-4 major browser engines that you needed to test with, and there were often major differences in both feature support, bugs and layout between them. For example you had to deal with the fact that IE used what is now known as `box-sizing: border-box` while other browsers used `box-sizing: content-box`, and the fact that browsers didn't even parse HTML consistently you could easily end up with different node tree in different browsers.

Re:Rebuilding a featured news section with modern CSS: Vox news by Dalewyn on Sunday April 30, 2023 @10:36PM (#35768535)
>they work the same in every browser!

That's because there's only one (alright, two) browsers.

Re:Rebuilding a featured news section with modern CSS: Vox news by nicoburns on Monday May 01, 2023 @08:41AM (#35772001)
There are 3. Safari is distinct from Chrome these days (even though they are derived from a common base). The fact that you consider them the same is evidence of what I'm saying: that differences in rendering between browsers tend to be minimal these days :)
Re:Rebuilding a featured news section with modern CSS: Vox news by bobthepanda on Sunday April 30, 2023 @04:55PM (#35766543)
Plain HTML and CSS are tedious.

Combine that with the fact that loops and objects don’t have fantastic support, if any, and it’s no wonder everyone and their mother has tried their hand at a templating framework. (WebComponents exist, but fall into a lot of the same traps; I didn’t like what I saw in the MDN tutorial.)