Home > Software engineering >  Why do "Inline-Block" elements create a new block formatting context and "Block "
Why do "Inline-Block" elements create a new block formatting context and "Block "

Time:02-10

I understand that inline-block create a new BFC (block formatting context) but I don't see why this is not given to a block element despite the only difference between the two is "a line break" .

CodePudding user response:

  •  Tags:  
  • Related