Can anyone tell me why when I place border=1
on a table is fixes its layout?
This is the problem: I wrote some JavaScript that makes me an org chart. If I place a border around the tables that make the chart, everything lines up perfectly. If I remove the borders, some of the lines vary wildly (and seemingly randomly) in width. You will notice this in the red lines that connect the org chart.
This is for the inline attribute of "border" (such as <table border="1">
).
Here are two demos:
Borders (good, looks all lined up): http://andrewvantran.com/table1.html
No borders (bad, all misaligned): http://andrewvantran.com/table2.html
I would like the have the table layed out the way it does with borders, but I don't want the borders! I can't simulate the layout of the table with borders unless I keep the borders (which I don't want). Any ideas?
Thanks!