官术网_书友最值得收藏!

Controlling the layout of a page: tables

Let's say you have a long list of items that you want to display on a single web page, such as all the elements in the periodic chart. You could simply list them all out in a single vertical column, but that would make your page rather long, and force your site visitors to scroll down the page a great deal to see all of the content. This is where tables come in.

Tables create a grid of rows and columns into which you can place content and display text or images side-by-side. There are a few basic table styles, which control the appearance of the table, to choose from. Start by editing a page, and click on the following Insert table icon:

Controlling the layout of a page: tables

Note

A word of caution: You cannot superimpose a table over pre-existing content. If you insert the table on top of text, you'll lose all the content! You must start by creating the table first, and then add content into the table cells.

A window will pop up, to let you choose the Table Class. There are several to choose from, some of which look only slightly different from some of the others. Select the number of rows and columns, indicate whether you want to use headers for the table columns, and then click on Add Table.

Controlling the layout of a page: tables

At first you'll just see a tiny grid, but the table will re-size itself as you type text into the cells. Here are examples of what each Table Class looks like in practice. All of these have two rows, two columns, and the headings turned on:

Controlling the layout of a page: tables

As you can see, the differences are subtle in some cases, but you should be able to find a style that works for the layout that you are envisioning. It will take you some time to get used to working with Tables, so be patient. Experiment often, and don't forget to save your work!

Note

If you wish to add additional rows or columns to an existing table, simply click inside a table cell. Small x and some little arrows will appear. Up and down arrows add rows above or below the current row, and left and right arrows add columns to the left or right of the current column. The x is there in case you want to remove a row or a column from the table. Use Ctrl + Z to undo your work if you make a mistake.

主站蜘蛛池模板: 专栏| 肇东市| 维西| 分宜县| 彰武县| 柳河县| 阿城市| 古交市| 潞城市| 镇宁| 盐源县| 正镶白旗| 定日县| 太仓市| 新龙县| 华安县| 罗城| 桐庐县| 普格县| 临城县| 柯坪县| 潼关县| 尤溪县| 嘉鱼县| 疏附县| 漳州市| 湖州市| 绥宁县| 高雄市| 鲜城| 阳新县| 绥江县| 阿瓦提县| 温州市| 陈巴尔虎旗| 左贡县| 武强县| 枣强县| 长寿区| 鄢陵县| 桐城市|