Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

align 2 tables horizontaly 1

Status
Not open for further replies.

CristianLuca

Programmer
Oct 25, 2007
36
RO
hello, i have a simple problem,
how can i align to tables horizontaly ?

[table 1] [table 2]

Thanks,
Cristian
 
Create one table with two colums
Set the vertical alignment for both cells to top.
Then put a new table inside each cell(column).
 
Please don't do that, its bad enough to use tables for layout, but then add to that nesting the tables.

If you really must use tables wrap them in a div, and float them.

Code:
<div>
<table style="float:left;">
...contents of table 1
</table>
<table style="float:left;">
...contents of table 2
</table>

</div>

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
I would use [navy]vacunita[/navy]'s example..

- Lowet

[gray]Why can't all browsers parse pages the same way? It should be the Web designer who decides how to display the content, not the browser![/gray]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top