Dreamweaver: How do I have two tables on the same line?

Discussion in 'HTML & Website Design' started by Davey Crocket, Aug 13, 2005.

  1. #1
    This is probably a really really simple question...how do I have two tables on the same line that are right next to each other?

    I have this website http://www.50centconcertticket.com/

    and whenever I insert a table it just sticks it directly underneath the other table. I would like the table to be Vertically even.

    Is there some sort of properties button I need to hit to align them up right?:confused:

    Any help is appreciated
     
    Davey Crocket, Aug 13, 2005 IP
  2. Smyrl

    Smyrl Tomato Republic Staff

    Messages:
    13,740
    Likes Received:
    1,702
    Best Answers:
    78
    Trophy Points:
    510
    #2
    If you use nested tables the look will probably more pleasing, however, someone recently posted code that will place two tables side by side. I was not crazy about apperence however.

    Code was:

    <table style="width: 100px; height: 100px; border: 1px solid red; float: left;"
    <tr><td></td></tr>
    </table>

    <table style="width: 100px; height: 100px; border: 1px solid blue;">
    <tr><td></td></tr>
    </table>

    Hope you can work out something to your liking.

    Shannon
     
    Smyrl, Aug 13, 2005 IP
  3. Crazy_Rob

    Crazy_Rob I seen't it!

    Messages:
    13,157
    Likes Received:
    1,366
    Best Answers:
    0
    Trophy Points:
    360
    #3
    Try something like this:

    
    
    <table width="100%" >
    <tr> 
    <td height="200" valign="top"> 
    <table width="80%">
    <tr>
    <td height="75">
    </td>
    </tr>
    </table>
    </td>
    <td> 
    </td>
    </tr>
    </table>
    
    Code (markup):
     
    Crazy_Rob, Aug 13, 2005 IP
  4. greenjenniferwalker

    greenjenniferwalker Guest

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have a blog...www.montreal-realestate.ca and I am having problems with my adsense showing up more then once on a single page. When I add it to my page, it shows up terrifically, until I try and add two or more on the same page...then it just shows up as a big blank space. Both my friend and I are both having this problem. Any idea what is wrong?
    jenn
     
    greenjenniferwalker, Feb 14, 2006 IP
  5. Rated

    Rated Active Member

    Messages:
    236
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #5
    If your working in design view, first make one big table, then put 2 tables inside them. :confused:
     
    Rated, Feb 14, 2006 IP
  6. johneva

    johneva Well-Known Member

    Messages:
    1,480
    Likes Received:
    46
    Best Answers:
    1
    Trophy Points:
    170
    #6
    Easy answer dont use tables for layout.

    Tables are for displaying tabular data.

    CSS should be used for layout.
     
    johneva, Feb 15, 2006 IP
  7. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Tables are perfectly fine and can do the job better in some cases than CSS. This isn't a which is better thread. To answer the thread starters question, in design view you'd make a table with two cells, and put a table in each one.
     
    mdvaldosta, Feb 15, 2006 IP
  8. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #8
    Did I miss it? Simply do one or the other of these;
    
    table {
        display: inline;
        }
    
    table {
        float: left;
        }
    Code (markup):
    Additional style rules are dependent on specific needs not available here.

    Putting presentation markup in the html is unprofessional. We've had the standards since 1998, IE5 since 1998 (even with non-compliant support, it was usable), IE6 in 2001 (milestone), Moz/Gecko 1.3 in 2002, and Opera4 ca. ??. There is no compelling reason to continue to use presentation markup.

    cheers,

    gary
     
    kk5st, Feb 15, 2006 IP