aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes how to center y-axis in td element Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "how to center y-axis in td element" Watch "how to center y-axis in td element" New topic
Author

how to center y-axis in td element

simon tiberius
Greenhorn

Joined: Oct 30, 2012
Posts: 29
I've tried:


but didn't work. the text in td is still on top of td. how to make it centered?
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1318

Hi simon,

<td> tag already have defined valign attribute to do that.

But
The <td> valign attribute is not supported in HTML5. Use CSS instead. [Reference]

So try
valign:middle


Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to center y-axis in td element
 
Similar Threads
Special characters parsing in Java
about http session
calculate the total automatically
html table to excel problem
Need to display results from the Database with hyperlink functionality