Ask Your Question
0

vertically center text in tables (HTML)

asked 2019-11-14 03:20:22 +0100

patdiddy gravatar image

Whenever I open any HTML document that has a table, the text appears centered, but, not in the center of the cell. Normally, I'd go fix the problem in dreamweaver once I've converted my excel table to html, but, I'm curious how I do that in libreoffice 6.3.3.2 for mac. the only option I can find is "center vertically", and that isn't centering the text vertically, only the table. Thanks

edit retag flag offensive close merge delete

Comments

Totally confusing.

How "any HTML document" is relevant to LibreOffice? do you open it in LO? or are you generating it with LO?

What "the text appears centered, but, not in the center of the cell" might mean? if it's centered, but not in the cell, then it's centered where?

What "once I've converted my excel table to html" might mean? Are you using Excel? Then again, how it's relevant to LO?

"but, I'm curious how I do that in libreoffice 6.3.3.2 for mac" - what is "that"? convert to HTML? Center (vertically) text in cells?

"the only option I can find is "center vertically"" - and that option is specifically where?

"and that isn't centering the text vertically, only the table" - what does that mean? can you provide screenshots with marked problems, description of wanted results, and sample spreadsheets?

Mike Kaganski gravatar imageMike Kaganski ( 2019-11-14 05:25:59 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-11-14 17:11:31 +0100

erAck gravatar image

updated 2019-11-14 17:11:52 +0100

Text in a table cell imported from HTML will be vertically aligned if the <td> element has a valign="middle" attribute. If it doesn't then it isn't.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-11-14 03:20:22 +0100

Seen: 34 times

Last updated: Nov 14