News for hackers. Stuff that matters.
Re:10 Weird HTML Hacks That Shaped the Internet by city41 on Friday December 01, 2023 @07:54AM (#38486124)
The era between tables and flexbox/grid was a difficult one. Floats were finicky and hard to get right. A lot of people just went back to tables, and I honestly didn't blame them.
Re:10 Weird HTML Hacks That Shaped the Internet by kalleboo on Friday December 01, 2023 @08:00AM (#38486174)
Or the rare-in-the-wild but somewhat funky method of using the display: table/table-row/table-cell CSS declarations to create table-based designs, but applied to different tags so at least your HTML still only shows those fancy modern divs :)
Re:10 Weird HTML Hacks That Shaped the Internet by chrisfinazzo on Friday December 01, 2023 @09:39AM (#38487165)
I had an internship during college at a small web shop that did a ton of HTML mail. Early on, after I had completed a project, they took a half day to try and teach me how floats worked.

Note: If you think web browsers are weird, just wait until you try doing things in email clients or - $deity forbid - ebook readers.

As you say, it was weird and initially quite difficult to wrap my head around it. Surprisingly, I didn't actually learn about the "clearfix" hack until a couple of years later when I interviewed for a Front-End job at - of all places - Fox News.

The person who I talked with there gave me a take-home to work on and send back. Tl;dr I didn't get it quite right because I hadn't really taken the time to understand what the particular styles did to the layout.

Fast-forward to today and I'm using floats w/ @print and a div class of "clearfix" set to "both" in order to reset the layout of a document that was converted from Word's .docx to HTML.

How times change.

Re:10 Weird HTML Hacks That Shaped the Internet by rchaud on Friday December 01, 2023 @10:19AM (#38487723)
The era between tables and flexbox/grid were the glory years of Bootstrap and Foundation CSS frameworks.