Go Back   HTMLCenter Web Development Forums > Web Design and Development > Programming and Scripting

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 4 votes, 3.00 average. Display Modes
  #1 (permalink)  
Old 04-07-2006, 07:45 PM
Registered User
 
Join Date: Apr 2006
Posts: 1
Table Alignment

Hello all,

I have a relatively simple question. How do you code tables to be next to each other.
I've been trying to figure it, though when I try it will go above or under the table. Using the page alignment will work but has an odd end result and wont share the same verticle lines. Meaning when that table is expanded down it moves down the other table.

So in short can someone tell me how to have tables next to each other without messing with the other tables.

-Thanks Crewman.
Reply With Quote

  #2 (permalink)  
Old 04-08-2006, 08:54 AM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,396
The problem with simply trying to align two tables next to each other is the variable browser behaviour. The majority of browsers will, if the total width of your tables is even close to 100% of the window width, split them onto two separate lines.

Therefore, the easy fix is to nest those tables within another table.

Code:
<table><tr><td>
<table><tr><td>This is your first table</td></tr></table>
</td><td>
<table><tr><td>This is your second table</td></tr></table>
</td></tr></table>
Then, if you want the tops of the tables to align with each other, then you simply add "valign='top'" to your outer tr tag. If you want the middles of the tables to align, you valign the row to middle, etc.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clueless-user-friendly Table Data obloquy Programming and Scripting 1 12-25-2005 07:43 AM
CSS & TABLE 1+1=3??? seccondbest Programming and Scripting 9 11-24-2005 02:27 AM
Interesting table behavior in IE6 frankvw Programming and Scripting 2 03-22-2005 09:32 AM
Translucent table background Ice_Man Programming and Scripting 2 03-01-2005 03:40 PM
Avoiding div layer to resize table to accomodate flash in Internet Explorer Redwizz Programming and Scripting 1 01-18-2005 06:02 PM


All times are GMT -5. The time now is 10:02 PM.

 
KickApps
Clicky Web Analytics


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter