Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

Vertically aligning <td> to middle
(1 viewing) (1) Guest
All your queries regarding HTML will be solved in this forum
  • Page:
  • 1
TOPIC:

Vertically aligning <td> to middle

Vertically aligning <td> to middle 9 months, 1 week ago #785

  • amelia
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 0
I am having an issue with aligning of my table data. I am trying to vertically aligning <td> to middle but it’s not working the way i wanted to work. here the code i am trying to work

Code:

<table cellspacing="1" cellpadding="1" style="width: 550px;">
<tbody>
<tr>
<td height="30" valign="middle">Name</td>
<td height="30" valign="middle">Address</td>
<td height="30" valign="middle">Contact No</td>
<td height="30" valign="middle">Gender</td>
</tr>
</tbody>
</table>

Re: Vertically aligning <td> to middle 9 months, 1 week ago #787

  • harry
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Don't use valign="middle" use style="vertical-align:middle". It will work.
  • Page:
  • 1
Time to create page: 1.09 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download