RE: CSS 2.1 Block inside inline behaviour

> From: Ian Hickson [mailto:ian@hixie.ch] 
> > Yeah, my real question was CSS related - should the text 
> "Block level 
> > element" have a background colour of yellow?
> 
> No, because the inline "stops" before the block-level 
> element, and "resumes" after it.
> 
> 
> > From looking at the spec again, it seems that background 
> colour isn't 
> > inherited by default, but it does have an initial value of 
> transparent. 
> > Therefore, the text "Block level element" should have a 
> background of 
> > yellow, no?
> 
> No, because the inline only appears on line boxes, and the 
> block-level box 
> is between the line boxes.

Thanks for the help, it makes sense now.

Michael.

Received on Friday, 26 August 2005 18:49:32 UTC