Log in

View Full Version : One table



sparklingsky
05-30-2009, 11:18 PM
Hi, I was wondering how I could make my current layout into one whole table. Right now I just placed my sidebar and main div right next to one another so that they're touching but it's pretty obvious that I did it. I would like the layout to be one solid table but still have a sidebar, it would just be within the table. My website is http://vivid-avenue.net and below are some examples of what exactly I mean.

http://soulfolio.com/, http://gvd-paperplanes.com/, http://lovetease.org/, http://www.tiramisyu.com/.

It looks much neater and more organized but I can't seem to figure out how to do it. Help would be much appreciated, thank you.

blue!
05-31-2009, 08:30 AM
have you tried colspan?



<table border='0' cellpadding='2' cellspacing='2'>
<tr>
<td colspan='2'>everything above your main content and your links</td>
</tr>
<tr>
<td>Links and such</td>
<td>your main content</td>
</tr>
</table>

forum_amnesiac
06-01-2009, 07:02 AM
You should be able to do what you want using a combination of rowspan and colspan.

When I use tables I normally have a <tr>section with <td>'s defined that will suit all parts of the page, eg each <td> might have a width of 10%.

I then use colspan="3" if I need a width of 30%, it's not always elegant but it also does away with the need for having multiple tables on a page.

I must say however that using Div's can be as, if not more, effective.