Help:Table/Width: Difference between revisions

Content deleted Content added
Clarify
Format
Line 1:
See the width and height section of [[Help:Table]].
 
The height settings have been removed from the tables below in order to focus solely on width. The only width setting is for the center header.
 
This example table needs to be on this separate page in order to test it more easily in narrower browser windows. Especially in mobile view on cell phones in portrait orientation.
Line 10 ⟶ 12:
:<code>style=width:20em | Center</code>
 
{| class=wikitable style="max-width:40em; height:14em;"
|-
! Left !! style=width:20em | Center !! Right
|-
| Top left cell || Top center cell || Top right cell
|-
|- style=height:7em
| Middle left cell || Middle center cell || Middle right cell
|-
Line 26 ⟶ 28:
:<code>style=max-width:20em | Center</code>
 
{| class=wikitable style="max-width:40em; height:14em;"
|-
! Left !! style=max-width:20em | Center !! Right
|-
| Top left cell || Top center cell || Top right cell
|-
|- style=height:7em
| Middle left cell || Middle center cell || Middle right cell
|-