Re: images in table

Posted by moovida on
URL: https://discuss.asciidoctor.org/images-in-table-tp6420p6422.html

Thanks for the reply Dan,

mojavelinux wrote
[...]
There's a setting to disable vertical centering:

https://github.com/asciidoctor/asciidoctor-reveal.js/blob/master/templates/document.html.slim#L129

I'm not sure about horizontal centering.
I tried to change this, but it doesn't affect it.

Horizontal centering is not the problem. It is really vertical. The text always starts at the bottom of the image. To make this look decent, I have to do this trick to "push" it up:

[cols="<.<,<.<,<.<"]
|===

a| 
image::images/08_project_info.png[]

2+a|
1. remove/add new data
2. edit and save the project's metadata
{empty} +
{empty} +
{empty} +
{empty} +
{empty} +
{empty} +

|===

mojavelinux wrote
If you continue to have difficulty, I would file a feature request at
https://github.com/asciidoctor/asciidoctor-reveal.js for a control to
disable the default horizontal centering.
I opened an issue, thanks.

Cheers,
Andrea