The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Table Columns Not Lining Up Correctly
AlexisLauren
post Jun 1 2010, 06:33 PM
Post #1





Group: Members
Posts: 2
Joined: 1-June 10
Member No.: 11,997



I have a table in which two columns are supposed to line up horizontally, but I can't seem to get them to. The right column is a line lower than the left. The two green lines beginning "Custom Perfume" should align, as should the pictures above them. Any guesses about what my problem might be?

The best I've done so far is forcing everything in that particular table down a few <br>'s which somehow fixes the problem, but leaves a gap that's too large.

here's a link, notice the part to remove-

http://gator1082.hostgator.com/~afte{REMOV...ome.php?cat=253

(A side note: this is my company's website and we've recently taken over finishing developing and debugging it before launching due to a falling out with the developer. I am very much a newbie to all of this.)

Thanks!

This post has been edited by AlexisLauren: Jun 1 2010, 06:35 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jun 1 2010, 08:03 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



You don't have "a table".

You have multiple tables. The table for the Aftelier Studio column is separate from the table for the Long Distance column, and those two tables are inside another table.

When debugging table layouts, it helps to turn on table borders so you can see what is going on. When you get the layout right, then turn off the borders again.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 1 2010, 08:37 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



The two nested tables don't have equal height and the default value for 'valign' is 'middle'. Two items that's are both vertically centered and of different height won't line up at the top.
http://htmlhelp.com/reference/html40/tables/td.html
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
AlexisLauren
post Jun 2 2010, 04:38 PM
Post #4





Group: Members
Posts: 2
Joined: 1-June 10
Member No.: 11,997



Thanks! Both these tips were really helpful - I turned the borders on, was able to see the valign center issue, and fixed it with some extra <br>'s. It probably wasn't the most elegant way of doing it, but it looks aligned now!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 2 2010, 06:33 PM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



It looks somewhat aligned, depending on the text sized used. You missed the obvious solution - use valign="top" . happy.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 10:31 AM