# Defining Borders for Tables and Table Cells

/text/shared/guide/border_table.xhp
tables in text; defining borders
tables in spreadsheets;defining borders
borders; for tables
frames; around tables
defining;table borders
mw deleted "adding;"
Defining Borders for Tables and Table Cells
Setting a Predefined Border Style
- 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.
Setting a Customized Border Style
- Select the table cells that you want to modify.
- Choose Table - 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 color 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 Spacing to contents area.
- Click OK to apply the changes.