Tables :
Pros and Cons








Tables are used widely for arranging information in tables but also for controlling the layout of pages.

Tables can be "invisible", meaning that the borders cannot be seen, allowing for designers to position content subtly. Tables are very versatile and a lot safer to use than frames. Tables can have the same appearance as frames and can even be scrolled by using CSS!

Code for tables can be saved in an external document.write JavaScript function and called for every page, allowing for a design that can be changed in one place. This would give the impression of frames.

Still don't believe?
The example below was created with nothing but HTML Tables and CSS:

This is a Heading

Some content...

This is a lot of text about nothing!

Wait a sec, I'll show you the code used to make this:

<table border="1" cellspacing="0" cellpadding="0" style="width:300px">
<tr>
<td bgcolor="#FFFFFF"><div style="overflow-x: auto;overflow-y: auto; width: 300px; height:120px; padding:3px; margin: 0px">
Content.
</div></td>
</tr>
</table>



The trick is to use the overflow-x and overflow-y CSS properties. Sadly, this CSS attribute is not supported in some browsers such as Camino for Macintosh.

 << PREVIOUS
READ MORE >>  
















DEVELOPER TIP!





     "Better Than Books - As Easy As It Gets!"