Re: Controlling table separators on per-row or per-cell basis

Posted by mojavelinux on
URL: https://discuss.asciidoctor.org/Controlling-table-separators-on-per-row-or-per-cell-basis-tp8216p8218.html

You will need to add a role (which translates into a CSS class) and apply custom styles to it. There's no way I know to cover all possible border needs. We offer general controls for grid and frame (e.g., grid=rows, frame=none). If those aren't sufficient, custom CSS is required.

Best Regards,

-Dan

On Thu, Sep 3, 2020 at 9:11 PM oddhack [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I'd like to generate a table with two columns that overlap, since both columns can contain very long content. Something like this:

[width="100%",cols="25%,25%,25%,25%",grid=none]
|====
3+| *Col A* |
| 3+| *Col B*
4+a| '''
3+| This is a very long cell lorem ipsum lorem ipsum |
| 3+| This is also a very long cell ipsum lorem ipsum lorem
|====


However, I don't see how to specify row separators only every other row. Is there any way to do this in table markup? I tried to fake it using a row containing just an asciidoctor horizontal rule, but that doesn't quite work (connect to the table borders), and wastes vertical space.

(No, flowing the column text won't work - in actuality the content is an extremely long C structure.member name and the goal is to have it readable in the table without being broken up).

Jon




If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Controlling-table-separators-on-per-row-or-per-cell-basis-tp8216.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux