logoalt Hacker News

Kudostoday at 11:05 AM7 repliesview on HN

In the 2000s wasn't everything just misused/abused table layouts? Maybe we frequented different places, but that's how I remember it.


Replies

neyatoday at 3:22 PM

That's funny because the argument against tables was always that they added extra markup a.k.a lines of code, only to replace them with dozens of nested divs, half assed CSS layout ideologies (floats and clear's, for example) and barely functional JS that all somehow needed to work in sync which was almost never. That's how NPM was born.

Tables worked with 100% of the browsers. The alternatives needed polyfills and shims and ironically the whole thing needed easily 2x the number of integration time and lines of code compared to just slapping tables.

show 2 replies
marginalia_nutoday at 1:22 PM

Table designs were kinda brilliant though, both in how easy they were to create[1], but also how easy they were to parse programatically or with a text-based browser. Given context of the table in front of you, you can generally piece together where on the screen the information goes without rendering anything.

You can generally do a lot of the same things with CSS grid layouts, but it's 100x more complicated, and the layout information is generally in the CSS file rather than the document itself making parsing the layout a Hard problem demanding the implementation of a partial CSS engine (and a sometimes JS engine too).

[1] A totally viable workflow was to draw your website in something like photoshop, cut boxes where the content would go, and then export it to an HTML table.

show 2 replies
JimDabelltoday at 11:31 AM

It became feasible to switch to CSS layouts for complex websites and apps in the early 00s. How early depended upon your target demographics and skill set. Lots of people who didn’t want to learn new ways of doing things carried on using table layouts long after browser support demanded it. I was using CSS sparingly from 1999 onwards and ditched table layouts in 2002, but I was ahead of the curve.

EE84M3itoday at 12:29 PM

Still works fine for this site.

GaryBlutotoday at 11:49 AM

It worked for the most part.

goaliecatoday at 11:55 AM

Yes and no. ie6 couldn’t render anything near the full specification so tables and other tricks were used where css couldn’t cut it. I’d still that that over JavaScript “apps”

woodpaneltoday at 4:33 PM

3 by 3 iframe layout with the center one displaying the actual content.