Tables

From Primary Surgery

Jump to: navigation, search

Contents

Create a basic table, without a border

To create this table:

One Two Three
Four Five Six
Seven Eight Nine

Use this Wiki code:

{|
|One
|Two
|Three
|-
|Four
|Five
|Six
|-
|Seven
|Eight
|Nine
|}

Create a table with a border

To create this table:

Top Left Top Top Right
Left Centre Right
Bottom Left Bottom Bottom Right

Use this Wiki code:

{| border="1"
|Top Left
|Top 
|Top Right
|-
|Left
|Centre
|Right
|-
|Bottom Left
|Bottom 
|Bottom Right
|}

Create a table with a border, no spacing between the table cells

To create this table:

Top Left Top Top Right
Left Centre Right
Bottom Left Bottom Bottom Right

Use this Wiki code:

{| border="1" cellspacing="0"
|Top Left
|Top 
|Top Right
|-
|Left
|Centre
|Right
|-
|Bottom Left
|Bottom 
|Bottom Right
|}

Create a table with a border, no spacing between the table cells, extra padding in the table cells

To create this table:

Top Left Top Top Right
Left Centre Right
Bottom Left Bottom Bottom Right

Use this Wiki code:

{| border="1" cellspacing="0" cellpadding="8"
|Top Left
|Top 
|Top Right
|-
|Left
|Centre
|Right
|-
|Bottom Left
|Bottom 
|Bottom Right
|}

Create a table with a thick border, lots spacing between the table cells and a bit of padding in the table cells

To create this table:

Top Left Top Top Right
Left Centre Right
Bottom Left Bottom Bottom Right

Use this Wiki code:

{| border="6" cellspacing="0" cellpadding="4"
|Top Left
|Top 
|Top Right
|-
|Left
|Centre
|Right
|-
|Bottom Left
|Bottom 
|Bottom Right
|}
Primary Surgery Books