Help:Wiki University Wikitext--Tables - Widths

Controlling width of tables
This is our table from the last chapter You will notice that the width is being controlled by the size and amount of text in the cells. What if you want the table to be as wide as the page, here we use our width attribute. Let say we want it to cover the entire width of the page. We only need to add the width attribute to our opening table tag:
 * width:100%

{| style="border:1px solid red ; width:100%"

 Exercises Check your answers >
 * With your table from the previous exercise, put a 15 pixel "ridge" border with a border color of "cornsilk."
 * Put a border for the whole table that is 15 pixels wide, "double" border with a border color of brown.
 * Put a blue border around the cells in the first column 1 pixel thick.

 Quick Quiz
 * Attributes must be separated with a pipe from the contents of the cell
 * A. True
 * B. False


 * You can put borders around rows
 * A. True
 * B. False


 * You can put borders on columns
 * A. True
 * B. False

Check your answers >