Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > vertical-align

Reply
Thread Tools

vertical-align

 
 
shank
Guest
Posts: n/a
 
      02-07-2004
<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
 
 
 
 
chris
Guest
Posts: n/a
 
      02-07-2004
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
 
 
 
 
Leif K-Brooks
Guest
Posts: n/a
 
      02-07-2004
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
 
Clive Moss
Guest
Posts: n/a
 
      02-08-2004

"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
 
Steve Pugh
Guest
Posts: n/a
 
      02-08-2004
"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
 
Chris Morris
Guest
Posts: n/a
 
      02-11-2004
"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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57