from Hacker News

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

by isaaclyman on 3/26/17, 6:37 PM with 35 comments

  • by lucideer on 3/26/17, 7:57 PM

    I was reading the first few and thinking "No... No... Hrmmm... this seems really misinformed" before it dawned on me around point 5 that the whole thing is satire.

    It eases you into the realisation nice and slowly. I'm guessing given the penchant for people to comment based purely on titles, some won't even get that far.

  • by dntrkv on 3/26/17, 9:46 PM

    On number 3, that behavior is exactly what I would expect. Not sure what other logical behavior you would propose...

    The other options don't make sense:

    "A) Aligned horizontally with the first two, but after both of them?"

    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.

    "B) On the row after the first two, on the far left side?" "C) On the row after the first two, on the far right side?"

    They are floated elements in the same BFC, if they fit on the same line, they will. Unless you clear them. Pretty simple stuff.

  • by nothrabannosir on 3/26/17, 9:45 PM

    I thought the "SS" part stood for Stockholm Syndrome. Looking at some of the comments here, it seems I may have been right..
  • by Bahamut on 3/26/17, 7:51 PM

    Can't say I agree with this article - I don't really run into CSS gotchas too often anymore.

    This just reads like a massive complaint-fest TBH.

  • by Fifer82 on 3/26/17, 7:52 PM

    CSS is a bloody disgrace. A hideous abomination. Is there any word on the street, any alternatives coming down the road?
  • by danieka on 3/26/17, 8:25 PM

    I enjoy working in CSS (or maybe I'm just oblivous of a better way/paradigmn of styling, if so please enlighten me :)) so this was a great read. Thank you!
  • by wingspan on 3/26/17, 8:20 PM

    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.
  • by pavlov on 3/26/17, 10:01 PM

    Using CSS to design software user interfaces is like using Microsoft Word and a parallel port modem to compose symphonies. I'm sure there'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's not clear why anyone should want to use these tools to create works of such complexity, if only they had an alternative.
  • by Kiro on 3/26/17, 7:48 PM

    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.

    https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-al...

  • by dsego on 3/26/17, 8:26 PM

    Number 7, so many projects include bootstrap and don't even use the damn thing.