THE DOCUMENTATION ON THESE PAGES IS INTENDED FOR USE BY OVIATT LIBRARY FACULTY. NON-LIBRARY CSUN FACULTY SHOULD CONTACT CSUN IT FOR HELP SETTING UP WEB SITES ON THE CAMPUS SERVER
Inserting and Working with Tables
Jump to : Inserting data tables
| Inserting layout tables | Adding
and Deleting Rows and Columns | Merging and Splitting
Cells | Changing Table Properties
Tables are used for two things in web pages: presenting tabular data (called
a data table), and page layout. A layout table is used merely to position
items on the page and is usually invisible to the user. Below is an example
of a data table:
Useful Books on Chaucer
|The age of Chaucer / Valerie Allen.
|| PR291 .A55 2004
|Old and Middle English literature / edited by Jeffrey Helterman and
|| PR166 .O43 1994
|Manuscripts and texts : editorial problems in later Middle English literature
: essays from the 1985 conference at the University of York / edited by
||PR275.T45 M37 1987
|The loyal conspiracy: the Lords Appellant under Richard II. / Anthony
||DA235 .G66 1971b
To insert a table:
- Select Insert > Table. The Insert Table dialog box will open.
- Type in the number of rows and columns you initially think you'll (you
can add more later).
- Table width: in order to avoid accessibility problems,
set the width using the "percent" option. Aa table set at "75 percent"
occupy 75% of the horizontal space made available for content by the template.
- Set a border thickness of 1 or more (visible borders
make data tables easier to read).
- Cell padding: this determines the margins between the
borders and contents within the boxes of the table (table cells).
- Cell spacing: any number higher than 0 will make the
borders appear thicker. Click OK.
- Accessibility Options Dialog Box
- For Data tables, type a caption in the Caption box.
This will appear at the top of the table and serve as the "title"
of your table (e.g. "Monthly Expenses for 2005")
- For all tables, type a summary in the Summary box.
This will not be visible to the average user, but will be helpful to
users of assistive technology. For a table used for layout only, type
"For layout only"
- For Data tables, set a Header: selecting Column, Row or
Both will designate the first column, first row, or
first row and first column as headers. Cells in headers (as in the example
above) contain metadata about the information in the row or column they
- Click OK.
Set a Header Row or Column in a Pre-existing Table
Select a row or column with your
mouse and check Header in the Table Properties Panel to
make it a header row or column. Then in Code View add
the attribute scope="col" to each <th> tag
in a header row, and scope="row" to each <th> tag
in a header column.
Adding and Deleting Rows and
- To insert a row or a column, place your cursor in the table below where
you'd like to insert a row or to the left of where you'd like to insert
a column. Right-click and select Table > Insert
Row or Insert Column.
- You can also right-click and select Table >Insert Multiple
Rows or Columns. The dialog that pops up will let you select the
number of rows or columns you wish to insert, and place them above, below,
left or right of your cursor.
- To delete a row or column, place your cursor anywhere in the row or column
you wish to delete, right-click and selectTable > Delete
Row or Delete Column.
Merging and Splitting Cells
To achieve different layout effects, you may wish to merge or split cells.
- To merge two or more cells, select them with your mouse, right-click and
select Table > Merge Cells.
- To split a cell, place your cursor in it, right-click and select Table > Split
Cell. The split cell dialog will allow you to split is into a number
of rows (i.e. horizontally) or columns (i.e. vertically).