Using tables for layout is pretty understandable. But when tables went out of fashion it was all about using floats for layout for a few years. That was wild, I am surprised it was left out from that list. https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layou... "Originally for floating images inside blocks of text, the float property became one of the most commonly used tools for creating multiple column layo…
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.
HTML hacks that shaped the Internet
101–110 of 233 posts
Re: HTML hacks that shaped the Internet
#102Using tables for layout is pretty understandable. But when tables went out of fashion it was all about using floats for layout for a few years. That was wild, I am surprised it was left out from that list. https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layou... "Originally for floating images inside blocks of text, the float property became one of the most commonly used tools for creating multiple column layo…
> it was all about using floats for layout for a few years Called these "faux columns" and a basic 3-column layout was so difficult it was referred to as the "holy grail" of layouts https://en.wikipedia.org/wiki/Holy_grail_(web_design)#Faux_c...
Re: HTML hacks that shaped the Internet
#103Earlier quoted context omitted.
W3Schools is a horrible resource. I'd like Google to hide all of their results.
A lot of people on HN seem to have this opinion. A lot of the content on that site has been re-written, and it's now a pretty fantastic resource for beginners. If you tell 2 beginners to build something with PHP/jQuery/JS, and send one person to W3Schools and the other to PHP.net/jquery.org/MDN, I have no doubt that the W3schools person will get something done in workable state faster.
That's not the point though, I'm not going to say different strokes for different folks.
Instead I'd say, if that beginner uses the 'slower' path instead, that will pay dividends in time -- they are better of learning to use the docs than getting paid peanuts for delivering that project which depends on the juniors faster.
Re: HTML hacks that shaped the Internet
#104Earlier quoted context omitted.
As W3Schools still likes to call it: the new, modern clearfix hack [1] .clearfix::after { content: ""; clear: both; display: table; } [1] https://www.w3schools.com/howto/howto_css_clearfix.asp
W3Schools is a horrible resource. I'd like Google to hide all of their results.
From the looks of it, it seems like blocking w3schools is quite popular among Kagi users [1].
Re: HTML hacks that shaped the Internet
#105Using tables for layout is pretty understandable. But when tables went out of fashion it was all about using floats for layout for a few years. That was wild, I am surprised it was left out from that list. https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layou... "Originally for floating images inside blocks of text, the float property became one of the most commonly used tools for creating multiple column layo…
I had to develop some email templates a while back for the first time and was almost shocked that they still use the "tables method" for layouts. Overall I'd say developing email templates now is much like developing websites in the early 2000's, email clients have such a wider range of CSS support that there are hacks all around. We now have frameworks like MJML and Foundation that do their best to abstract all that…
Re: HTML hacks that shaped the Internet
#106Earlier quoted context omitted.
Speaking of floats being used for layout, you could probably add the clearfix hack to this list too. That was an essential part of my CSS toolbox for years, and something that ended up being one of the first things added in every new project. https://css-tricks.com/snippets/css/clear-fix/
The linked article includes an example of the "commented backslash hack," a variation on point #3 in this article Fell out of use because "nobody uses IE for Mac" :)
Re: HTML hacks that shaped the Internet
#107Re: HTML hacks that shaped the Internet
#108Earlier quoted context omitted.
A lot of people on HN seem to have this opinion. A lot of the content on that site has been re-written, and it's now a pretty fantastic resource for beginners. If you tell 2 beginners to build something with PHP/jQuery/JS, and send one person to W3Schools and the other to PHP.net/jquery.org/MDN, I have no doubt that the W3schools person will get something done in workable state faster.
And if you tell 2 experts to build something with W3Schools as the resource against better documentation, I'm sure the results will be the opposite. That's not the point though, I'm not going to say different strokes for different folks. Instead I'd say, if that beginner uses the 'slower' path instead, that will pay dividends in time -- they are better of learning to use the docs than getting paid peanuts for deliver…
So a beginner should use w3schools while they see fit, and then move on to MDN, etc. when they find it to be unsuitable for their purposes.
Re: HTML hacks that shaped the Internet
#109Re: HTML hacks that shaped the Internet
#110TypeScript, JSX, Tailwind and bundlers come to mind of current trends that get some strong negative reactions but could become more mainstream later.