Table troubles

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • somegal
    New Member
    • Jul 2007
    • 3

    Table troubles

    Hi, it it possible to have 2 tables on one line side by side ?

    This is the code I am using, as you can see it places the tables one under the other, I am not sure what I need to change.Do I need to combine the 2 into one table, and if so how do I work both sets of top and bottom images in?

    Thanks in advance.

    <table width="300"cell padding="0"cell spacing="0"bord er="0"><tr><td align="center"b gcolor="#c5b48c "><img

    src="images/1.gif" /></td></tr>
    <tr><td align="center"b gcolor="#c5b48c ">
    Blah blah blah blah blah blah
    </td></tr><tr><td align="center"> <img src="images/2.gif" /></td></tr></table>




    <table width="300"cell padding="0"cell spacing="0"bord er="0"><tr><td align="center"b gcolor="#e4d9c0 "><img

    src="images/1a.gif" /></td></tr>
    <tr><td align="center"b gcolor="#e4d9c0 ">
    Blah blah blah blah blah blah
    </td></tr><tr><td align="center"> <img src="images/2a.gif" /></td></tr></table>
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    In css:
    table{float:lef t}

    Never use tables to layout pages.

    Comment

    • somegal
      New Member
      • Jul 2007
      • 3

      #3
      Thanks but I dont know how to do it any other way could you give me a more detailed description ( or point me in the direction of where I could get some more information)

      Thanks.

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        Go to W3Schools and read about CSS.

        Comment

        • Andelys
          New Member
          • Aug 2007
          • 47

          #5
          Originally posted by somegal
          Hi, it it possible to have 2 tables on one line side by side ?

          This is the code I am using, as you can see it places the tables one under the other, I am not sure what I need to change.Do I need to combine the 2 into one table, and if so how do I work both sets of top and bottom images in?

          Thanks in advance.

          <table width="300"cell padding="0"cell spacing="0"bord er="0"><tr><td align="center"b gcolor="#c5b48c "><img

          src="images/1.gif" /></td></tr>
          <tr><td align="center"b gcolor="#c5b48c ">
          Blah blah blah blah blah blah
          </td></tr><tr><td align="center"> <img src="images/2.gif" /></td></tr></table>




          <table width="300"cell padding="0"cell spacing="0"bord er="0"><tr><td align="center"b gcolor="#e4d9c0 "><img

          src="images/1a.gif" /></td></tr>
          <tr><td align="center"b gcolor="#e4d9c0 ">
          Blah blah blah blah blah blah
          </td></tr><tr><td align="center"> <img src="images/2a.gif" /></td></tr></table>
          Yes it is, But if you wonna be sure that they are on the same line would i suggest that you put the 2 tables inside a main table.
          I can show you an example:

          [HTML]
          <table>
          <tr>
          <td>[here goes code for table 1]</td>
          <td>[here goes code for table 2]</td>
          </tr>
          </table>

          [/HTML]

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            No. Never use tables for layout.

            Comment

            • Andelys
              New Member
              • Aug 2007
              • 47

              #7
              Why?
              ............... ......

              Comment

              • drhowarddrfine
                Recognized Expert Expert
                • Sep 2006
                • 7434

                #8
                Tables are for tabular data only not for page layout. At one time, years ago, it was the best method for arranging elements on a page. But now we have CSS which is more flexible, easier to control, faster to download, more SEO friendly works with XML and the DOM and a host of other advantages. Tables are now relegated to their original use.
                From the guy who first created the idea of tables for page layout: The Web is Ruined and I Ruined it
                also
                Tables for layout is stupid.

                Comment

                Working...