Question:
Table alignment in html?
emilysk8
2009-09-16 05:37:01 UTC
I am building this website at:

http://hireemily.com/ladidolls/shop.html

The products are not lining up in the tables. Can you view the source and tell me why?

Here is the code for the table:


Addie

Book Baby Addie

7" Doll with clothes

$11.00


Bailey

Baby Book Bailey

7" Doll with Clothes

$11.00


Camille

Baby Book Camille

7" Doll with Clothes

$11.00

Book Baby Clothes - Just For Girls

Book Baby Clothes

Just For Girls

$4.25


Five answers:
crsimon36
2009-09-16 08:37:14 UTC
Validation states that you have 20 errors. Correction of these errors might correct your problem. Just looking at your code, you have a closing table tag following the code for Quiet Books. Then immediately follow is a tag, then a opening table tag.



Css styling of the table could make this a great deal simpler and easier to read. I suggest that since you have some styling also style the table and eliminate all the formatting from within the table. Since you have more than one table, this could require two ID's, one for each table.



I used Opera to view. Then the problem was apparent. BTW, after the html is corrected, also validate the CSS to see if there are errors.
anonymous
2016-05-19 05:52:00 UTC
Tables aren't made for resting to the right and left of one another. The way you can do it is by creating a third table (lets call it table C) with 1 row and 2 columns. Set table C's width to 100%. Place table A in the left column of table C and place table B in the right column of table C. Set the border of table C to 0, so it's invisible to the visitor. It will appear as though table A and B are next to one another.
Saket K
2009-09-16 05:48:07 UTC
Try this below mention code:





Addie



Bailey



Camille

Book Baby Clothes - Just For Girls







Book Baby Addie



7" Doll with clothes



$11.00

Baby Book Bailey



7" Doll with Clothes



$11.00

Baby Book Camille



7" Doll with Clothes



$11.00

Book Baby Clothes



Just For Girls



$4.25

poolekiteman
2009-09-16 05:44:18 UTC
I will test this on Firefox tonight and let you know what I find - you should also consider testing it with Opera, for maximum compatibility



Checked at 17:58GMT - using MSIE7, Firefox and Opera - alignment looks fine. If you zoom out in Firefox, not all the text changes size, that's all I could spot. HTH.



Try the free go on Netmechanic, and see what HTML errors it now flags up (link below)
David D
2009-09-16 05:42:13 UTC
http://validator.w3.org/check?uri=http%3A%2F%2Fhireemily.com%2Fladidolls%2Fshop.html&charset=%28detect%20automatically%29&doctype=Inline&group=0 lists some of the errors in the page


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...