I’m trying to make sense of the CSS float property, and I understand the basic motivation of text flowing around a floated image. My question is this: since inline elements flow around floated elements, even if if those inline elements are children of non-floated block-level elements, can we somehow consider the text inside the paragraph
element to be inline? I’m trying to form a good mental model of what is happening. Thanks.
I’m trying to make sense of the CSS float property, and I understand the
Share
From the CSS spec:
So it’s an inline box generated by a block element as opposed to an inline box generated by an inline element. Anonymous only means that it doesn’t have an associated inline element.