![]() |
![]() |
![]() |
![]() |
![]() |
||||
[HTML][JavaScript][Computer Stuff][Freeing the Mind]
This table does not have any padding of any kind (except my words!)
| No padding here, I'm afraid! | When we put a lot of text in a table then we find that the text tends to brush up to
the border of the table and it looks a bit cramped. However, we can fix it with a bit of padding. |
However, this table has cell padding!
| This is the code in the table; <TABLE BORDER="5" CELLPADDING="20"> | When we put a lot of text in a table then we find that the text tends to brush up to
the border of the table and it looks a bit cramped. Cell padding puts some space between the border of the cell and the text. Aren't I much prettier than before? Well, you know what you can do then. Put your own values in! |
And this table has cell spacing!
| This is the code in the table; <TABLE BORDER="5" CELLSPACING="20"> | When we put a lot of text in a table then we find that the text tends to brush up to
the border of the table and it looks a bit cramped. Cell spacing puts some space between the cells themselves in the table. |
And this little pig, er table, had all the padding and spacing it
wanted!
| This is the code in the table; <TABLE BORDER="5" CELLPADDING="20"> | When we put a lot of text in a table then we find that the text tends to brush up to
the border of the table and it looks a bit cramped. Cell padding puts some space between the border of the cell and the text. Cell spacing puts some space between the cells. This table has both. |
Did you notice that I put rather big values in for the padding, and for the border, so it was very clear what was going on? It is a good idea to be brave and try a few things. Be outrageous, and you'll find out how things work!
HTML:
The Definitive Guide by Chuck Musciano, Bill Kennedy, Mike Loukides (Editor) Packed with examples, this book will take you on to be an HTML expert. Beginners who wish to be proficient, and experienced users, especially, will find this book helpful. It is an up-to-date coverage of the language and give information on good style, and good presentations for various purposes. Click the picture to order or get further information from Amazon.com Or from Amazon.co.uk for Europe. |
Let's look at frames
[back to: aligning the contents of table cells!]
[home][contents]
[on to: frames]
Most Recent Revision: 18-Oct-98.
Copyright © 1998 Ken J
Ward
I am always pleased to hear from you.
Send your comments to Ken
Ward
and please visit: The New Life Course