Board index » html » vertical-align
|
shank
Registered User |
|
shank
Registered User |
vertical-align
2004-02-07 10:14:00 AM
<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 - |
| chris
Registered User |
2004-02-07 10:50:00 AM
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" <shank@tampabay.rr.com>schrieb im Newsbeitrag Quote<td style="width:40%; vertical-align:middle"> |
| Leif K-Brooks
Registered User |
2004-02-07 12:40:00 PM
Re:vertical-align
shank wrote:
Quote<td style="width:40%; vertical-align:middle"> |
| Clive Moss
Registered User |
2004-02-08 08:19:00 AM
Re:vertical-align
"shank" <shank@tampabay.rr.com>wrote in message
Quote<td style="width:40%; vertical-align:middle"> Clive - |
| Steve Pugh
Registered User |
2004-02-08 10:00:00 AM
Re:vertical-align
"Clive Moss" <clive@takethisoutinstant-image.co.uk>wrote:
Quote"shank" <shank@tampabay.rr.com>wrote in message 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 <steve@pugh.net><steve.pugh.net/> - |
| Chris Morris
Registered User |
2004-02-11 11:12:00 PM
Re:vertical-align
"Clive Moss" <clive@takethisoutinstant-image.co.uk>writes: Quote"shank" <shank@tampabay.rr.com>wrote in message |
| Jeff Thies
Registered User |
2004-06-26 01:16:00 PM
Re:vertical-align
You can do this in a table cell:
... <td valign="middle"> <p>content in middle of cell</p> </td> Can you do this with a div? <div style="height: 300px; vertical-align: middle"> <p>... Actually, I read that that should work! Does nothing for me. Jeff - |
| rf
Registered User |
2004-06-26 01:27:00 PM
Re:vertical-align
"Jeff Thies" <nospam@nospam.net>wrote in message
QuoteYou can do this in a table cell: QuoteCan you do this with a div? QuoteActually, I read that that should work! Cheers Richard. - |
| Spartanicus
Registered User |
2004-06-26 03:12:00 PM
Re:vertical-align
"Jeff Thies" <nospam@nospam.net>wrote:
QuoteYou can do this in a table cell: Spartanicus - |
| windandwaves
Registered User |
2006-10-29 07:47:00 AM
Re:vertical-align
Hi Folk
Can you do vertical-align bottom in a div or only really in a table? I prefer to use divs of course, but in tables, the vertical align seems to be working better. Is this correct? TIA Nicolaas - |
| Ben C
Registered User |
2006-10-29 11:11:00 PM
Re:vertical-align
On 2006-10-28, windandwaves <nfrancken@gmail.com>wrote:
QuoteHi Folk that contains another box at the bottom of it, use positioning. Set the outer box to position: relative (or position: absolute), and the inner box to position: absolute with bottom: 0px. You set position on the outer box just to make it the containing block for the inner box (i.e. the block the inner box is 0px from the bottom of). Using relative rather than absolute on the outer box keeps it "in the normal flow". - |
| windandwaves
Registered User |
2006-10-30 04:13:00 AM
Re:vertical-align
Ben C wrote:
QuoteOn 2006-10-28, windandwaves <nfrancken@gmail.com>wrote: <html> <head> <title></title> </head> <body> <div id="outer" style="position: relative; height: 300px; background-color: #ccc; width: 200px;"> <div id="inner" style="position: absolute; bottom: 0px; background-color: #777; "> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque leo. Duis arcu erat, posuere non, fringilla vel, ultricies ut, purus. Nunc turpis. Nullam hendrerit, elit nec molestie pellentesque, ligula ante tempor dui, eu molestie nibh erat sed sem. Maecenas orci. Donec aliquam imperdiet sapien. </div> </div> </body> </html> - |
| Jonathan N. Little
Registered User |
2006-10-30 04:32:00 AM
Re:vertical-align
windandwaves wrote:
QuoteHi, I tested it and it works a treat. THANK YOU "www.w3.org/TR/html4/strict.dtd"> -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO www.LittleWorksStudio.com - |
| windandwaves
Registered User |
2006-10-30 10:55:00 AM
Re:vertical-align
Jonathan N. Little wrote:
Quotewindandwaves wrote: - |
| Jonathan N. Little
Registered User |
2006-10-30 11:16:00 AM
Re:vertical-align
windandwaves wrote:
QuoteJonathan N. Little wrote: who use Perl with CGI.pm only use the default "XHTML 1.0 Transitional" but you *can* change it.... use CGI qw(-no_xhtml); $CGI::DEFAULT_DTD = ['-//W3C//DTD HTML 4.01//EN', 'www.w3.org/TR/html4/strict.dtd']; -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO www.LittleWorksStudio.com - |
| password
Registered User |
2006-10-31 03:18:00 PM
Re:vertical-align
"windandwaves" <nfrancken@gmail.com>wrote in message
Quote
bottom - anyway around this? i am currently testing my page in all other (browser/op) combinations with browsershots.org/ so may have to return again for more help ho hum. - |
| Ben C
Registered User |
2006-10-31 05:16:00 PM
Re:vertical-align
On 2006-10-31, password <fatpipe@epiptaf.com>wrote:
Quote
|
| password
Registered User |
2006-11-01 06:28:00 AM
Re:vertical-align
"Ben C" <spamspam@spam.eggs>wrote in message
QuoteOn 2006-10-31, password <fatpipe@epiptaf.com>wrote: - |
| password
Registered User |
2006-11-01 06:31:00 AM
Re:vertical-align
"password" <fatpipe@epiptaf.com>wrote in message
Quote
|
