Learn HTML step-by-step from A to Z or improve your professional skills.  Home HTML and CSS Tutorials Tricks using Tables
Your Ad Here

Tricks using Tables


Table"I need to have two tables sit side by side, but no matter what I do, they end up stacked. What gives?"

Example

A table must sit alone on a "line", but if we stick our tables inside of a table... guess what? It works! This is also very useful for when you have two pictures, each with a caption under it. In this example, I have BORDER=1 so you can see what is going on.

Source
Result
<TABLE BORDER="1" WIDTH="400">
  <TR>
   <TD>
    <TABLE BORDER="1">
     <TR>
      <TD>
       This is in our first table!
      </TD>
     </TR>
    </TABLE>
   </TD>
   <TD>
    <TABLE BORDER="1">
     <TR>
      <TD>
       And this is in the second table!
      </TD>
     </TR>
    </TABLE>
   </TD>
  </TR>
</TABLE>
This is in our
first table!
And this is in
the second table!

See Also:



Author's URL: Jeff Singer
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
print this page subscribe to newsletter subscribe to rss

HTML is Hyper Text Markup Language that is used to make hypermedia and hypertext documents for the Web. More HTML and CSS: Most Popular Materials | Fresh Materials | More HTML Tutorials at Markuptutorials.com

Add comments to "Tricks using Tables"

Only registered users can write comment

Reader's comments