Jump to content

Putting tables right beside each other.


Xyphon

Recommended Posts

An HTML question, but oh well....

 

You have to either set them to inline, or put them in a container, such as the same row of another table.

 

Well, that would ruin the whole output to put it in the same table. How do you set them inline?

 

 

I meant have three tables with the two tables inside of one of the tables....

 

Example:

 

<table>
     <tr>
          <td>
               <table>
                    <tr>
                         <td>
                              table 1
                         </td>
                    </tr>
               </table>
          </td>
          <td>
               <table>
                    <tr>
                         <td>
                              table 2
                         </td>
                    </tr>
               </table>
          </td>
     </tr>
</table>

 

That's basically identical to what Northern Flame put, but oh well ;p.

 

<table style="display: inline;">

 

The only problem with inline elements is that you can't set a static width for them (well..... not easily).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.