Select the table cells that you want to modify.
Click the Borders icon on the Table toolbar (Writer) or on the Line and Filling bar to open the Borders window.
Click one of the predefined border styles.
This adds the selected style to the current border style of the table cells. Select the blank border style at the top left of the Borders window to clear all border styles.
Select the table cells that you want to modify.
Choose Table - Properties - Borders (Writer) or Format - Cells - Borders (Calc).
In the User-defined area select the edge(s) that you want to appear in a common layout. Click on an edge in the preview to toggle the selection of an edge.
If you select more than one row or column, you can change the middle lines between rows or columns. Select the middle markers in the User-defined area.
Select a line style and colour for the selected border style in the Line area. These settings apply to all border lines that are included in the selected border style.
Repeat the last two steps for every border edge.
Select the distance between the border lines and the page contents in the Padding area.
Click OK to apply the changes.