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…
I'm mostly with you, but it seems like an antipattern to ignore HTML structure like that.
8 CSS gotchas to start your morning off right (satire)
31–38 of 38 posts
Re: 8 CSS gotchas to start your morning off right (satire)
#32On 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…
I'm mostly with you, but it seems like an antipattern to ignore HTML structure like that.
Re: 8 CSS gotchas to start your morning off right (satire)
#33On 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…
I'm mostly with you, but it seems like an antipattern to ignore HTML structure like that.
Re: 8 CSS gotchas to start your morning off right (satire)
#34Earlier quoted context omitted.
Excellent, that's exactly the effect I was going for. My posts have about a 75% abandonment rate, though, so most of the people who hit the post probably won't stick around long enough to get the joke. Oh well.
The satire doesn't come across very strong and makes the author look uninformed. CSS has its ups and downs but the problems faced in the article have been known and solved for years in production environments across the web. The article is basically misleading with no answer for those unaware. Sorry if this feels harsh but reading through was fairly unpleasant.
Re: 8 CSS gotchas to start your morning off right (satire)
#35On 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…
Re: 8 CSS gotchas to start your morning off right (satire)
#36On 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…
It's satire. The most obvious behaviour was left out of the MCQ deliberately to frustrate the reader.
But yes, we're probably being a little too hard on this piece, being satire and all... Then again, what else do you expect from the HN audience?
Re: 8 CSS gotchas to start your morning off right (satire)
#37The 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...
Yeah...I wouldn't say that "accuracy" was one of the main goals of this post per se.
Re: 8 CSS gotchas to start your morning off right (satire)
#38CSS is a bloody disgrace. A hideous abomination. Is there any word on the street, any alternatives coming down the road?
And fail they did. Rather than hammer out an explicit standard, they just kind of winged it and left the actual implementation details to the browser builders. Those guys were never going to play nicely together, but at least we'd be able to blame someone else.