Tables

How to Create a Table

  1. inserting a table example

    Create a page or edit an existing one.

  2. Add any content that has the Editor Toolbar (Text, Accordion, Cards, Text with Background, Text on Media) and select Table.
  3. Select your desired number of rows and columns using the selector that appears by hovering your mouse over the desired table size. The row/column count will appear below the grid for added clarity.
  4. Click on the table size selector to confirm your table size and insert it onto the page.

Fields

  • Headers:
    • First Row: Bolds the top row of data in the table
    • First Column: Bolds column header
    • Both: A combination of both in the table at the same time
  • Caption: Displays a line of text at the base of the table

example of editing a table

By clicking into your table, you are able to edit table cells, rows, columns, and properties by using the small wizard that appears above the table. From here, you can also paste information into cells or delete the table.

  1. Create a new table or navigate to an existing one. Click in one of its cells.
  2. The leftmost button in the wizard will show you options for editing, adding, or removing columns.
  3. The second button in the popup wizard will show you options for editing, adding, or removing, rows.
  4. The third button in the popup wizard will show you options for editing, merging, or removing, cells.
  5. The last button enables a caption for your table.
  6. Click outside of the table to confirm changes. 

You can edit the source code of a table to alter its appearance. Below are some of the several ways you can customize a table.

How to Change Table Backgrounds:

  1. Navigate to the Source button in the Editor Toolbar.
  2. Navigate to the <table> tag at the top of the table source code.
  3. Insert class = "table table-light"class = "table table-dark", or class = "table table-striped" inside the <table> tag.
    • Ex: <table class="table table-striped">
    • Note: Backgrounds can also be combined. An example of this would be <table class="table table-striped table-dark"> which makes the table background alternate between 2 shades of dark gray.
  4. Save

How to Change Table Headers:

  1. Navigate to the Source button in the Editor Toolbar.
  2. Navigate to the <thead> tag at the top of the table source code.
  3. Insert class = "thead-light" or class = "thead-dark" inside the <thead> tag.
    • Ex: <thead = "thead-dark">
  4. Save

How to Change Table Borders:

  1. Navigate to the Source button in the Editor Toolbar.
  2. Navigate to the <table> tag at the top of the table source code.
  3. Insert class = "table table-bordered" or class = "table table-borderless"  inside the <thead> tag.
    • Ex: <table class="table table-bordered">
    • Note: Border classes can be combined with background classes within the <table> tag like this: <table class="table table-borderless table-dark">
  4. Save

How to Make Tables Hoverable:

  1. Navigate to the Source button in the Editor Toolbar.
  2. Navigate to the <table> tag at the top of the table source code.
  3. Insert class = "table table-hover" inside the <table> tag
    • Ex: <table class = "table table-hover">
  4. Save

  • Displaying data that can be read as "if X, then Y" statements
  • Organizing many rows of information

  • Can't set stable column width
  • Mobile responsiveness is limited

Striped Table
Student Contact Information
Wilma Wildcat

520-621-5555

wilmawildcat@email.arizona.edu

Wilbur Wildcat

520-621-5555

wilburwildcat@email.arizona.edu

Student Contact Information
Wilma Wildcat

520-621-5555

wilmawildcat@email.arizona.edu

Wilbur Wildcat

520-621-5555

wilburwildcat@email.arizona.edu

Student Contact Information
Wilma Wildcat

520-621-5555

wilmawildcat@email.arizona.edu

Wilbur Wildcat

520-621-5555

wilburwildcat@email.arizona.edu