TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

8 CSS gotchas to start your morning off right (satire)

92 pointsby isaaclymanabout 8 years ago

10 comments

lucideerabout 8 years ago
I was reading the first few and thinking &quot;No... No... Hrmmm... this seems really misinformed&quot; before it dawned on me around point 5 that the whole thing is satire.<p>It eases you into the realisation nice and slowly. I&#x27;m guessing given the penchant for people to comment based purely on titles, some won&#x27;t even get that far.
评论 #13962891 未加载
dntrkvabout 8 years ago
On number 3, that behavior is exactly what I would expect. Not sure what other logical behavior you would propose...<p>The other options don&#x27;t make sense:<p>&quot;A) Aligned horizontally with the first two, but after both of them?&quot;<p>Floats are taken out of the normal flow so they will be pulled as far to the side as possible until they reach another floated element or the edge of the BFC.<p>&quot;B) On the row after the first two, on the far left side?&quot; &quot;C) On the row after the first two, on the far right side?&quot;<p>They are floated elements in the same BFC, if they fit on the same line, they will. Unless you clear them. Pretty simple stuff.
评论 #13963882 未加载
评论 #13963585 未加载
nothrabannosirabout 8 years ago
I thought the &quot;SS&quot; part stood for Stockholm Syndrome. Looking at some of the comments here, it seems I may have been right..
Bahamutabout 8 years ago
Can&#x27;t say I agree with this article - I don&#x27;t really run into CSS gotchas too often anymore.<p>This just reads like a massive complaint-fest TBH.
评论 #13962846 未加载
评论 #13962849 未加载
Fifer82about 8 years ago
CSS is a bloody disgrace. A hideous abomination. Is there any word on the street, any alternatives coming down the road?
评论 #13963167 未加载
评论 #13965924 未加载
daniekaabout 8 years ago
I enjoy working in CSS (or maybe I&#x27;m just oblivous of a better way&#x2F;paradigmn of styling, if so please enlighten me :)) so this was a great read. Thank you!
wingspanabout 8 years ago
Fantastic, thank you for making me laugh so much. Almost makes up for the years spent being tortured by CSS just so I could appreciate your tale.
评论 #13963078 未加载
pavlovabout 8 years ago
Using CSS to design software user interfaces is like using Microsoft Word and a parallel port modem to compose symphonies. I&#x27;m sure there&#x27;s some awe-inspiring way to print from Word to the modem so that it produces sounds that vaguely remind you of a French horn and viola -- but it&#x27;s not clear why anyone should want to use these tools to create works of such complexity, if only they had an alternative.
评论 #13963574 未加载
Kiroabout 8 years ago
The one about vertical-align seems wrong. I use it all the time when aligning text next to images and that has nothing to do with tables afaik.<p><a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;CSS&#x2F;vertical-align" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;CSS&#x2F;vertical-al...</a>
评论 #13962896 未加载
评论 #13962802 未加载
dsegoabout 8 years ago
Number 7, so many projects include bootstrap and don&#x27;t even use the damn thing.
评论 #13963076 未加载