Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - vertical-align

 
Thread Tools Search this Thread
Old 02-07-2004, 02:13 AM   #1
Default vertical-align


<td style="width:40%; vertical-align:middle">
Is vertical-align:middle supposed to work inside a table cell for text?
My text still lines up on the bottom.
thanks




shank
  Reply With Quote
Old 02-07-2004, 02:50 AM   #2
chris
 
Posts: n/a
Default Re: vertical-align

Yes it should be aligned in the middle of the cell. Can you give an URL
please? What browser do you use?

"shank" <> schrieb im Newsbeitrag
news:sRXUb.56800$ ...
> <td style="width:40%; vertical-align:middle">
> Is vertical-align:middle supposed to work inside a table cell for text?
> My text still lines up on the bottom.
> thanks
>
>



  Reply With Quote
Old 02-07-2004, 04:40 AM   #3
Leif K-Brooks
 
Posts: n/a
Default Re: vertical-align

shank wrote:
> <td style="width:40%; vertical-align:middle">
> Is vertical-align:middle supposed to work inside a table cell for text?
> My text still lines up on the bottom.


Yes, but it's generally the default anyway. URL?
  Reply With Quote
Old 02-08-2004, 12:19 AM   #4
Clive Moss
 
Posts: n/a
Default Re: vertical-align


"shank" <> wrote in message
news:sRXUb.56800$ ...
> <td style="width:40%; vertical-align:middle">
> Is vertical-align:middle supposed to work inside a table cell for text?
> My text still lines up on the bottom.
> thanks
>
>

If the code on your page is as you've written it here - then adding the
final ";" would help

Clive


  Reply With Quote
Old 02-08-2004, 01:59 AM   #5
Steve Pugh
 
Posts: n/a
Default Re: vertical-align

"Clive Moss" <> wrote:
>"shank" <> wrote in message
>news:sRXUb.56800$ m...
>>
>> <td style="width:40%; vertical-align:middle">
>> Is vertical-align:middle supposed to work inside a table cell for text?
>> My text still lines up on the bottom.

>
>If the code on your page is as you've written it here - then adding the
>final ";" would help


Why? in CSS ; is a separator not a terminator. Do you know of any
browsers that are so buggy as to ignore final styles that do not have
a ; after them?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <> <http://steve.pugh.net/>
  Reply With Quote
Old 02-11-2004, 03:12 PM   #6
Chris Morris
 
Posts: n/a
Default Re: vertical-align

"Clive Moss" <> writes:
> "shank" <> wrote in message
> news:sRXUb.56800$ ...
> > <td style="width:40%; vertical-align:middle">
> > Is vertical-align:middle supposed to work inside a table cell for text?
> > My text still lines up on the bottom.


That should work. However, vertical-align: middle is the default for
<td> anyway, in most browsers, which suggests you have something else
making it align to the bottom of the cell.

> If the code on your page is as you've written it here - then adding the
> final ";" would help


In what browser? It's a separator, not a terminator, so it shouldn't
be needed - I don't know of any browser that requires it.

--
Chris
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump