| Warning: include(http://www.studio6000.com/tutorside.htm) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/studio60/public_html/html/lesson15b.php on line 17 Warning: include() [function.include]: Failed opening 'http://www.studio6000.com/tutorside.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/studio60/public_html/html/lesson15b.php on line 17 |
Changing the width of a tablePerhaps you wouldn't like the table to take up the whole width of the browser window. Say you only wanted to take up 50% of the browser window. To make things a little less crowed let's go back to our first table example and let's add the width attribute.
The result would be:
As you can see the table has now reduced in half and only takes up half the width of the browser. Keep in mind that by using a percent value the table will take up 50% of the browser window. Therefore it may look very different in two different browsers. To make things more exact you can measure the width of the table by using pixels. To do this, simply leave out the percent sign, like so:
Now the table will look like this:
You can also set the height of a table, like so:
Now the table will look like this:
|