This is an ad.
 
Webmonkey Kids
Webmonkey Kids
Lessons
Projects
Playground
Tools

Introduction
icon Rows and Cells
Building Your First Table
Colspan
Rowspan
Alignment
Spacing and Padding
A Few More Tricks



Parents and Teachers:
Find out how your kids can use Webmonkey for Kids as a learning tool at home or in the classroom with our Planning Guide.

Send us feedback

Lesson A: Tables
Alignment


ow let's get a little fancier. You can place the words wherever you want inside their cells by using the align command. Let's take a look:

    align=right pushes everything against the right side.

    align=left pushes everything against the left side.

    align=center centers everything in the middle.

But wait, there's more! We can also line stuff up vertically, pushing it toward the top, bottom, or middle of the cells. We do this with valign:

    valign=top pushes everything to the top of the cell.

    valign=bottom pushes everything to the bottom of the cell.

    valign=middle centers everything in the middle vertically.

Back

Next Page