Learning Objective: Span two columns and three rows with a single cell
- Open the AsciiDoctor editor.
- Type this following Asciidoctor code sample in Asciidoctor editor:
[options="header",cols="4*"]
|===
|Column 1, header row |Column 2, header row |Column 3, header row |Column 4, header row
|Cell in column 1, row 2
2.3+|This cell spans columns 2 and 3 and rows 2, 3, and 4 because its specifier contains a span of `2.3+`
|Cell in column 4, row 2
|Cell in column 1, row 3
|Cell in column 4, row 3
|Cell in column 1, row 4
|Cell in column 4, row 4
|=== - Result, similar like this:
Column 1, header row Column 2, header row Column 3, header row Column 4, header row Cell in column 1, row 2 This cell spans in column 2 and 3 and rows 2, 3, and 4 because its specifier contains a span of 2.3+ Cell in Column 4, row 2 Cell in column 1, row 3 Cell in column 4, row 3 Cell in column 1, row 4 Cell in column 4, row 4
< Previous click AsciiDoctor Table 2
Bibliography:
https://asciidoctor.org/
https://www.adoc-studio.app/
https://www.baeldung.com/
https://www.vogella.com/
Tidak ada komentar:
Posting Komentar