Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to mark inner borders of table?

Алексей Пашнин March 21, 2024

I have table f.e. 5x4.

I want to create section inside such table and make its own color.

So the first two rows and 5 cells would form the section banded by green borders.

The other part would banded by red color.

Is that available?

1 answer

1 accepted

1 vote
Answer accepted
Kseniia Trushnikova
Community Champion
March 26, 2024

Hi @Алексей Пашнин,

You can add styles in the Source Editor. For example, here's a table with a green row and a red row:

<table>
<colgroup> <col/> <col/> <col/> <col/> <col/> </colgroup>
<tbody>
<tr>
<th scope="col">
<br/>
</th>
<th scope="col">
<br/>
</th>
<th scope="col">
<br/>
</th>
</tr>
<tr style="border: solid green;">
<td>
<br/>
</td>
<td>
<br/>
</td>
<td>
<br/>
</td>
</tr>
<tr style="border: solid red;">
<td>
<br/>
</td>
<td>
<br/>
</td>
<td>
<br/>
</td>
</tr>
</tbody>
</table>

style="border: solid green;" will add a border to a row, so the table will look like this:

Screenshot 2024-03-26 at 15.04.31.png

If you want to add borders to cell, add style="border: solid green;" to the tag <td>, also.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events