12-10-2009 11:09 AM
Looking for good tips on how to properly format (CSS) tables that have three to four columns. I've tried a bunch of things and have found giving the table the following properties seems to work well, but wondering if there is a better way?
table {
border-collapse: collapse;
table-layout: fixed;
width: 100%;
}
(Each cell in the table is then given a fixed (%) width).
12-11-2009 10:42 AM - edited 12-11-2009 10:43 AM
I figured out that you might run better by using ordinary html table formating options.
Additionaly I use some CSS.
This gives totaly clean tables:
<table width="100%" align="center" cellpadding=0px; cellspacing=0px; border=0px id="menu_table">
<td width="10%" valign="top" align="left">
<....>
#menu_table {
border: 0;
border-collapse: collapse;
}