Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical table alignment not working with reveal.js backend #42

Closed
Zlika opened this issue Jul 30, 2015 · 4 comments
Closed

Vertical table alignment not working with reveal.js backend #42

Zlika opened this issue Jul 30, 2015 · 4 comments

Comments

@Zlika
Copy link

Zlika commented Jul 30, 2015

Hi !
The following code is working with the html5 backend, it prints a table with an image and a text, both vertically aligned. However, with the reveal.js backend, the vertical alignment is not honored.

[cols=".^1,.^2"]
|====================
| image:https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Tux.svg/2000px-Tux.svg.png[width=150] | I Love Linux
|====================

@mojavelinux
Copy link
Member

The necessary styles are missing. You'd need to copy them into your theme CSS for now.

Here are the styles you need:

https://github.com/asciidoctor/asciidoctor/blob/master/data/stylesheets/asciidoctor-default.css#L235-L257

This is part of a larger issue that AsciiDoc requires CSS to activate certain features, so we need to include "base CSS" that works with all themes that implements the AsciiDoc-related features such as table alignment. HTML can only describe so much. CSS is needed for some of it.

@mojavelinux
Copy link
Member

Related to #23.

@Zlika
Copy link
Author

Zlika commented Jul 30, 2015

Thanks for the workaround!

@obilodeau
Copy link
Member

This is fixed with #288. It will be part of the upcoming 3.0.0 release.

@ggrossetie ggrossetie removed this from the 4.2.0 milestone Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants