![]() |
|
|
|
#1 |
|
<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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 > > |
|
|
|
#3 |
|
Posts: n/a
|
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? |
|
|
|
#4 |
|
Posts: n/a
|
"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 |
|
|
|
#5 |
|
Posts: n/a
|
"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/> |
|
|
|
#6 |
|
Posts: n/a
|
"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 |
|