Author: * Asenath Amenhotep -
2 Posts
on this thread out of
2,321 Posts
sitewide.
Date: Jul 8, 2005 - 06:23
The answer yes in that coding for tables is done the same way outside AW as in here. The size of the table will be a lot larger outside AW if you set the width. Most probably 1000 or more if you want to take up the entire screen with it.
When "designing" tables bear in mind the width you have set your table to be. Whatever you set it, that's what the width will be regardless of who is viewing it. You can of course adjust the width of the table so it becomes "liquid".
When someone resizes their screen, the info in the table will adjust to suit (ie wordwrap text, etc). If a width is set, the table will remain fixed when resizing a browser window and the person will get a scrollbar at the side or bottom of the browser window.
Instead of setting the width (width="300") you can change it to a percentage (width="80%"). The table will then occupy 80% of the browser window regardless of what size the browser window is.
If you haven't set the width at all, then by default, the table will size itself depending on the content and cellspacing/cellpadding you have specified. If you haven't specified any spacing or padding, then the contents will align right at the edge.
|
This table has a width setting of 600, cellspacing 0 and cellpadding is 10. This table should be fixed regardless of the screen being resized. Let's see what happens... does a scrollbar appear at the side of the browser window when you adjust it?
|
|
This table has a width setting of 80%, cellspacing 0 and cellpadding is 10. This table should be "liquid" and should also resize to fit the browser window. Let's see what happens... does the table contents adjust to fit the window?
|
|
This table has no width setting, cellspacing or cellpadding. The contents should be aligned right up against the border and will resize itself depending on the content (ie graphics ro text). The width is "liquid"...
|
Does this make sense Agrippina? If not, drop me a line and I'll figure it out for you.
:-)
|