Live data from Hacker News

Things I wish I’d known about CSS

cssfordesigners.com

1–10 of 340 posts

Re: Things I wish I’d known about CSS

#2
I think a better understanding between inline and block is, that inline-elements do not generate a block. The idea of a block breaks down for inline elements, especially when they go over multiple lines. It's not just a horizontal expansion.

So understand what creating a block means. Inline-elements don't.

Re: Things I wish I’d known about CSS

#7
That’s useful.

Some time ago, I wrote up a series about CSS. It’s still quite relevant (but CSS has come quite a ways, since then).

The thing I’ve found that is often misunderstood, is specificity. It’s a fairly non-trivial concept: https://littlegreenviper.com/miscellany/stylist/introduction...

Re: Things I wish I’d known about CSS

#9
post #2

I think a better understanding between inline and block is, that inline-elements do not generate a block. The idea of a block breaks down for inline elements, especially when they go over multiple lines. It's not just a horizontal expansion. So understand what creating a block means. Inline-elements don't.

how does this help explain inline-block? your explanation must accommodate the holes.
Post reply on HN