Results 1 to 3 of 3

Thread: One table

  1. #1
    Join Date
    Feb 2009
    Posts
    50
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Unhappy One table

    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.

  2. #2
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    have you tried colspan?

    Code:
    <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>

  3. #3
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •