I want to place 2 tables next to next in HTML. How to do that?

If we do it using margin tag, it varies while checking in different screen resolution, the center table varies its position. The left table width is 20% and center table width is 80%. Height of both the tables is 80%.. The center table height keeps on varying.

Public Comments

  1. Instead put 2 divs. Tables are not for webdesign, they are for data only. If you need the code then please write to me. reference http://gateway2internet.com
  2. Definitely put both inside div tags. Theoretically you could make them both be in cells of an even bigger table, but that's poor coding and I'd advise against it.
  3. If you're wanting them to always be in the same place, your best bet would be to go with absolute positioning and place them so many pixels from the left and so many pixels from the top.
  4. Basic Bare Bones..: <table width="100%" height="400" border="1"> <tr> <td width="20%"> <center>Here is the little one</center> </td> <td width="80%"> <center>Here is the big one</center> </td> </tr> <table> That seems to hold at all resolutions.
Powered by Yahoo! Answers