So many complaints about web technology, where is the replacement? I'd be interested to know if there was the one true layout system that everyone agrees on
TeX [0] is in some sense "the one true layout system", but it's designed for printed documents, so it doesn't work on the web [1]. And in some ways, it's much simpler than CSS (you can build nearly everything from only a dozen typesetting primitives or so), but in other ways it's much more complex (since TeX is itself a fairly complex programming language). It's typesetting quality is still unbeaten by any of its com…
CSS: Unavoidable Bad Parts
11–20 of 88 posts
Re: CSS: Unavoidable Bad Parts
#12In 2026, you can avoid the bad parts. > Let's start with the basics: if you write`font-size: 16px`then `16px` is the size of what? Sadly, the answer is "nothing in particular" -- this is a size of a virtual box around the glyph, but the box isn't tight, and the size of the glyph varies, depending on the font. Luckily, `font-size-adjust` property can fix it, and make `font-size` consistent across fonts. All modern bro…
Yup, using rem for as many things as possible has always been good to me.
If the user is on a phone and has a larger default font size due to vision difficulties, making padding scale with the font size takes screen real estate away from the larger text the user needs.
Re: CSS: Unavoidable Bad Parts
#13So many complaints about web technology, where is the replacement? I'd be interested to know if there was the one true layout system that everyone agrees on
TeX [0] is in some sense "the one true layout system", but it's designed for printed documents, so it doesn't work on the web [1]. And in some ways, it's much simpler than CSS (you can build nearly everything from only a dozen typesetting primitives or so), but in other ways it's much more complex (since TeX is itself a fairly complex programming language). It's typesetting quality is still unbeaten by any of its com…
Re: CSS: Unavoidable Bad Parts
#14So many complaints about web technology, where is the replacement? I'd be interested to know if there was the one true layout system that everyone agrees on
TeX [0] is in some sense "the one true layout system", but it's designed for printed documents, so it doesn't work on the web [1]. And in some ways, it's much simpler than CSS (you can build nearly everything from only a dozen typesetting primitives or so), but in other ways it's much more complex (since TeX is itself a fairly complex programming language). It's typesetting quality is still unbeaten by any of its com…
Re: CSS: Unavoidable Bad Parts
#15Note: The following of course varies from site to site based on how design focused the site needs to be. I had thought about writing some things about this, but I will put a quick observation here >restrict yourself to using only markup-meaningful semantic tags, and then figure out CSS which works with the markup you have. this used to be the best practice advice about 20 years ago. If you've been around long enough…
Personally I like to try to use semantic HTML where possible, as it helps with a11y and is nicer to read and work with. But I don't mind using some container/wrapper divs to make things look right.
Re: CSS: Unavoidable Bad Parts
#16Earlier quoted context omitted.
TeX [0] is in some sense "the one true layout system", but it's designed for printed documents, so it doesn't work on the web [1]. And in some ways, it's much simpler than CSS (you can build nearly everything from only a dozen typesetting primitives or so), but in other ways it's much more complex (since TeX is itself a fairly complex programming language). It's typesetting quality is still unbeaten by any of its com…
My understanding is that it's designed for fixed-size documents? There's a big difference between a layout system for that, and one where size of a document can vary wildly, up to completely opposite aspect ratios
There is actually a TeX extension that supports viewers arbitrarily changing the page size of documents [0], but it's fairly new, and as far as I'm aware it has essentially zero adoption.
Re: CSS: Unavoidable Bad Parts
#17Earlier quoted context omitted.
TeX [0] is in some sense "the one true layout system", but it's designed for printed documents, so it doesn't work on the web [1]. And in some ways, it's much simpler than CSS (you can build nearly everything from only a dozen typesetting primitives or so), but in other ways it's much more complex (since TeX is itself a fairly complex programming language). It's typesetting quality is still unbeaten by any of its com…
I'm not sure if Tex has a way to express mobile/desktop aware layouts, or to enable the reader to adjust only the font size (my ignorance)
Re: CSS: Unavoidable Bad Parts
#18Yes, it's a bit fuzzy now with modern displays (especially when display scaling is not at a whole number haha) but it just kinda feels like searching for something to complain about. If your browser and OS doesn't get in the way you can get exact measurement. This also applies to almost any UI framework that has some integration with the OS.
Re: CSS: Unavoidable Bad Parts
#19Note: The following of course varies from site to site based on how design focused the site needs to be. I had thought about writing some things about this, but I will put a quick observation here >restrict yourself to using only markup-meaningful semantic tags, and then figure out CSS which works with the markup you have. this used to be the best practice advice about 20 years ago. If you've been around long enough…
I feel like something in the CSS camp that could be highlighted in a "great idea, okay implementation, poor reception" that the OP is going for is print stylesheets. Those are incredibly underused.
Re: CSS: Unavoidable Bad Parts
#20https://css-tricks.com/inheriting-box-sizing-probably-slight...