Re: [css-d] Line-height question

2005-12-11 Thread Gunlaug Sørtun
Jonathan Carter wrote: >> Inline content is vertically aligned according to the >> vertical-align property, within an inline box the height of the >> line-height (whether you set the line height explicitly or not). >> > > If that is true, then why is the following example text still > vertical

Re: [css-d] Line-height question

2005-12-11 Thread Jonathan Carter
David Dorward wrote: >On 11/12/05, Jonathan Carter <[EMAIL PROTECTED]> wrote: > > >>1) When you set a line-height on an element, is every line of text >>contained inside it vertically centered within a "box" whose height is >>equal to the container's line-height? >> >> > >Inline content is v

Re: [css-d] Line-height question

2005-12-11 Thread David Dorward
On 11/12/05, Jonathan Carter <[EMAIL PROTECTED]> wrote: > 1) When you set a line-height on an element, is every line of text > contained inside it vertically centered within a "box" whose height is > equal to the container's line-height? Inline content is vertically aligned according to the vertic

[css-d] Line-height question

2005-12-11 Thread Jonathan Carter
I was reading an article on vertically centering text, and it was showing how setting the line-height of an element to the same value as it's height will center any containing content vertically. But this only seems to work if the parent element contains only a single line of text, which makes