![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello fellow stylesheet colleagues, I'd like to be sure about my understanding of the inline box model. Question: In this webpage, http://www.gtalbot.org/BrowserBugsSe...eElements.html I submit that inline box height should not grow, should not stretch vertically to fit nested inline child elements. |
|
Am I wrong? I can't seem to find the exact spot where CSS 2.1 says so. |
|
Same issue, same question with http://www.gtalbot.org/BrowserBugsSe...I-padding.html and http://www.gtalbot.org/BrowserBugsSe...LI-margin.html I think CSS 2.1, section 10.6.1 applies, in particular "The vertical padding, border and margin of an inline, non-replaced box start at the top and bottom of the content area, not the 'line- height'. But only the 'line-height' is used when calculating the height of the line box." http://www.w3.org/TR/CSS21/visudet.h...e-non-replaced |
#3
| |||
| |||
|
|
Yes, exactly. In the two examples above you haven't set line-height, |
|
but you're demonstrating the same issue that padding on descendent inlines isn't involved in inline box height calculation. |
![]() |
| Thread Tools | |
| Display Modes | |
| |