Help:Wiki University Wikitext--Tables - Borders
- Nesting Lists
- Broken Links
- Image Embedding
- Image Tooltips & Borders
- Image Links
- Images & Text; Embedding PDF
- Snipping Tool & Paint
- Inline Styling
- Changing Fonts
- Font Colors
- Font Bold-Italics
- Div Tag - Intro
- Width and Height
- Alignment - Horizontal
- Breadcrumb Trails
Previously, we learned to create a simple table using table, row, and cell tags, then added a class named "wikitable" in the opening table tag to add lines to the table. We will now demonstrate how to "customize" a table to your specifications using the various "attributes" we learned to change "text". Let's start with the "border" attribute.
Table Border[edit | edit source]
- To add a border around a table, add the border attribute to the opening table tag like so:
- NOTICE the space between the pipe and the word "style".
Here is the table with the border added:
- NOTICE You can go to the Help:Wiki University Wikitext--Borders lesson to review the syntax for the border attribute.
Cell borders[edit | edit source]
You can also put borders around cells:
Each cell now has its own border.
- NOTICE the width of the table is determined by the text in the cells.
- NOTICE each cell has the border attribute placed in it. It is a lot of work, but this is the only way it works in the Wiki.
Here is the coding:
- NOTICE the |- row tag acts like a separator between the attribute in the opening table tag and the next cell.
- NOTICE that a pipe separates the attribute from the text in the cell. The pipe must be there.
Try these out[edit | edit source]