View Full Version : Three column table having dynamic width

04-07-2011, 03:17 PM

I am trying to have a three column table where the middle column will have 1000px width, what I want is depending on the resolutions it needs to middle the middle column and make the sides have same width, the following code is working perfect in Firefox, but Google Chrome is having issues by having 0 width for the left and right column, the code is:

<table cellspacing="0" cellpadding="0" border="0" width="100%">
<td class="the-left" ></td>
<td class="the-middle">
<div style="width: 1000px;"></div>
<td class="the-right"></td>

04-07-2011, 03:39 PM
Why use tables for that? Read here (http://www.hotdesign.com/seybold/)why tables for layouts are bad.

Here (http://matthewjamestaylor.com/blog/perfect-3-column.htm)is a 3 column liquid div layout tutorial.