CarlosDEV🤖🧙♂🤟
CarlosDEV🤖🧙♂🤟
KPCKevin Powell - Community
Created by CarlosDEV🤖🧙♂🤟 on 7/5/2024 in #front-end
The box model does not fully apply to items participating in an inline formatting context.
Hello folks. I'm going through the CSS Demystified course, and I'm facing some problems understanding something that Kevin says in the 'Introduction to Formatting Contexts' lesson. I've got problems with the following text:
The box model does not fully apply to items participating in an inline formatting context. In a horizontal writing mode line, horizontal padding, borders and margin will be applied to the element and push text away left and right. However, margins above and below the element will not be applied. Vertical padding and borders will be applied but may overlap content above and below as, in the inline formatting context, the line boxes will not be pushed apart by padding and borders
The box model does not fully apply to items participating in an inline formatting context. In a horizontal writing mode line, horizontal padding, borders and margin will be applied to the element and push text away left and right. However, margins above and below the element will not be applied. Vertical padding and borders will be applied but may overlap content above and below as, in the inline formatting context, the line boxes will not be pushed apart by padding and borders
Does this mean that the space between items in an inline formatting context is defined by the line-height property? Thanks in advance
4 replies