This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to center y-axis in td element" Watch "how to center y-axis in td element" New topic

how to center y-axis in td element

simon tiberius

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: 1321

Hi simon,

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

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

So try

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: how to center y-axis in td element
It's not a secret anymore!