|
Lesson 10 - Tables continued....
The last thing you will need to know about tables is how to change their size.
If you don't specify a height or width, the table will try to fit in your text or
pictures automatically. This may not look exactly how you want it, however.
To set the width of an entire table, you just need to say how many pixels or
what percentage of the screen you want it to span. The average webpage is
about 600 pixels in width. It is completely up to you what size you set.
You just need to type width="your value" when you start your table. For example:
<table width="600"> or <table width="70%">
Then you just type the rest of your table as normal. Height works in the same way as width,
it just insn't normally used. To set the height, you just type
height="your value". You can set the height and width at the same time
by typing:
<table width="600" height="400"> or <table width="70%" height="50%">
Now you know all the basics and should be able to create a good-looking webpage
or shop front. Don't forget, if you get lost of confused at any point,
just come back and read over the part you were stuck on.
|