Generally to vertically align a single line of text I use the line-height
property and set it to the same as the element height.  This is only
reliable for block elements with only one line of text.

On Feb 4, 2008 9:05 AM, Adrian Lynch <[EMAIL PROTECTED]> wrote:

> Asking my CSS friend sat next to me, he says probably not, but more
> importantly, why would you want this? :O)
>
> Adrian
>
> -----Original Message-----
> From: ismail cassiem
> Sent: 04 February 2008 13:14
> To: CF-Talk
> Subject: vertical align the text within a text box
>
>
> Hi, I need help please!
>
> I want to vertical align the text within a text box.
>
> I can set the vertical align of the text box but not the text.
>
> My text box has a style property of: style ="height : 20px; border : 1px
> solid #CCCCCC;"
>
> but my text is to high on top in the text box
>
>
> I tried the following:
>        text-align : center;    -  but that moves the text to the center
> horizontally
>        vertical-align : sub;
>
> Please Asist!
>
>
> Regards
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298049
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to