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 vertical-align
property, within an inline box the height of the line-height (whether
you set the line height explicitly or not).
> 2) Is there a way to vertically align a group of lines within a
> containing element?
#container {
display: table-cell;
vertical-align: middle;
}
... requires a CSS 2 browser (i.e. not MSIE).
--
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/