Unable to place the image and table side by side.
Table creates the nextline automatically, I have even tried nested tables, but didn't worked well. I would like to place those side by side.
Do we have any other way we can place those side by side.
Unable to place the image and table side by side.
Table creates the nextline automatically, I have even tried nested tables, but didn't worked well. I would like to place those side by side.
Do we have any other way we can place those side by side.
Copyright © 2021 Jogjafile Inc.
AsciiDoc is a content markup language, not a content layout language. You can provide hints using roles that the output format can use to inform the presentation, but that's about it.
That said, the default styles provided for Asciidoctor HTML output do include
left,center, andrightroles that can achieve what you are looking for, with some caveats.For example:
Renders as:
The three things that make it work are:
role="left", which applies a CSSfloat: leftstyle.%autowidth, which means it doesn't span the entire content width by default.role="right", which applies a CSSfloat: rightstyle. This isn't strictly necessary.The problem is that if the image and/or table are too wide for the available space, the table moves below the image.
Nested tables might work but can be more onerous to get right.
All other strategies required applying custom CSS to achieve the layout you want. See DocInfo Files for details on how to apply custom CSS.