5043Re: [NH] vertical alignment of text
- Feb 12, 2005Hi,
I have good luck with
but I use it in the <div>, it may work in the <p>
On Sat, 12 Feb 2005 19:49:58 -0800 (PST), sisterscape brightened my
> First off you misspelled vertical in 'verticle-align'. ;) (I don't
> understand why you have it attached to the <p> element either.) In
> case, it won't work. Here's an explanation from CSS guru Paul
> over at SitePoint:
> "Vertical-align does not vertically align divs (it was never meant
> Vertical-align determines the alignment of text within a single
> line of
> text or within a table cell. In a table cell the middle of the
> will align with the middle of the cell."
> I would suggest fussing with the top and bottom margins of the <p>
> 50% (or whatever percentage will achieve the desired placement).
> --- "Don - htmlfixit.com" <don@...> wrote:
>> I am trying to get text to vertically align in a div so that it is
>> centered top to bottom.
>> In firefox the following behaves as I would expect:
>> <div id="subheaderright">
>> <p style='verticle-align: middle;'>
>> this is in the middle vertically
>> and the words go right smack in the middle, but in ie, the text
>> the upper left corner of the div, apparently unresponsive to this
>> directive. Any help appreciated.
> Do you Yahoo!?
> Meet the all-new My Yahoo! - Try it today!
> CSE HTML Validator Lite - it's free:
> Fookes Software Home: http://www.fookes.us/redir
> Yahoo! Groups Sponsor
> Yahoo! Groups Links
> To visit your group on the web, go to:
> To unsubscribe from this group, send an email to:
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
- << Previous post in topic Next post in topic >>