On 05/08/07, Kenoli Oleari <[EMAIL PROTECTED]> wrote:
> When I use this style:
>         vertical-align: middle;
> with this div:
> why does the text align in the center horizontally but at the top
> vertically?

'vertical-align'
    Value:      baseline | sub | super | top | text-top | middle | bottom
| text-bottom | <percentage> | <length> | inherit
    Initial:    baseline
    Applies to:         inline-level and 'table-cell' elements
  -- http://www.w3.org/TR/CSS2/visudet.html#propdef-vertical-align

Since a div is display: block by default it is neither inline-level
nor display: table-cell, so the property doesn't apply.

-- 
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to