Re: sideways text in table header

Posted by mojavelinux on
URL: https://discuss.asciidoctor.org/sideways-text-in-table-header-tp7163p7376.html

In Asciidoctor, when you add a role to a block, that translates into a CSS class in the HTML output. So you can style different tables differently by assigning roles and using CSS as you normally would.

See https://asciidoctor.org/docs/user-manual/#role

Best,

-Dan

On Wed, Nov 27, 2019 at 8:48 AM be.wood [via Asciidoctor :: Discussion] <[hidden email]> wrote:
As a follow-on question to this, I need to create separate table styles in the document. I don't want all the tables to have rotated text in the header, just some of them. I know this can be done in CSS, but what I don't know is how to associate the style I need in the Asciidoctor file itself.

So for example, I want the first table with normal headers, but then a second table with the rotated headers. These would probably be the only styles I would use for the tables, but I'm not sure how to mark one table to use one style class over another.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/sideways-text-in-table-header-tp7163p7374.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux