Separator around One Cell

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
teknikulriter
Propeller Head
Posts: 26
Joined: Thu Jan 12, 2023 2:15 pm

Separator around One Cell

Post by teknikulriter »

Hello

I'm hoping to find an easy solution to this. I want a border around one cell in a table. Just one cell. Is there a simple way to do this? I can't find anything online about this. I don't want to mess with an existing table style. In Word, for example, can add a border around one cell only. I cannot find this in Flare.
robdocsmith
Sr. Propeller Head
Posts: 247
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: Separator around One Cell

Post by robdocsmith »

It depends on your definition of easy... Flare isn't Word and works in different ways.

Two ways off the top of my head:

Add a style like the below to your stylesheet, right click in the cell, choose Cell Class and select the td.borderallaround style.

Code: Select all

td.borderallaround {
   border: 1px solid black;
}
Or select the cell, switch to the Text Editor and add the same definition to the <td> for the cell to add local formatting for that cell:

Code: Select all

<td style="border: 1px solid black;">Cell contents</td>
I'd use the former if you need to do it for more than one cell so you can control the border appearance in one place.

Hope that helps,
Rob
Post Reply