Please visit our sponsors !
HTML Layout
Everywhere on the Web you will find pages that are formatted
like newspaper pages using HTML columns.
HTML Layout - Using Tables
One very common practice with HTML, is to use
HTML tables to format the layout of an HTML page.
A part of this page is formatted with two columns, like a newspaper
page.
As you can see at this page, there is a left column and a right column.
This text is displayed in the left column.
|
An HTML <table> is used to divide a part
of this Web page into two columns.
The trick is to use a table without borders, and maybe a little extra
cell-padding.
No matter how much text you add to this page, it will stay inside its
column borders.
|
Same Layout - Color Added
One very common practice with HTML, is to use
HTML tables to format the layout of an HTML page.
A part of this page is formatted with two columns, like a newspaper
page.
As you can see at this page, there is a left column and a right column.
|
An HTML <table> is used to divide a part
of this Web page into two columns.
This text is displayed in the right column.
The trick is to use a table without borders, and maybe a little extra
cell-padding.
No matter how much text you add to this page, it will stay inside its
column borders.
|
Examples
Dividing a part of an HTML page into table columns is very easy to do. To let
you experiment with it, we have put together this
simple example.
HTML Joke
Student: "How do you spell HTML?"
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|