Get the latest tech news

Old CSS, new CSS (2020)


I first got into web design/development in the late 90s, and only as I type this sentence do I realize how long ago that was. And boy, it was horrendous.

Early browsers didn’t handle this correctly, and some otherwise strict-mode websites from circa 2000 rely on it — e.g., by cutting up a large image and arranging the chunks in table cells, expecting them to display flush against each other — hence the intermediate mode to keep them limping along. And the more conscientious authors noticed that screenreaders would read the entire sidebar before getting to the body text, which is a pretty rude thing to subject blind visitors to, so they came up with yet more elaborate setups to have a three-column layout with the middle column appearing first in the HTML. Case in point: someone (I dug the original source up once but can’t find it now) had the bone-headed idea of always setting body { font-size: 62.5% } due to a combination of “relative units are good” and wanting to override the seemingly massive default browser font size of 16px (which, it turns out, is correct) and dealing with IE bugs.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of css

css

Photo of new CSS

new CSS

Photo of Old CSS

Old CSS

Related news:

News photo

Blogs strip off for CSS Naked Day

News photo

Arm Announces Neoverse V3 and N3 CPU Cores: Building Bigger and Moving Faster with CSS