Forum Moderators: open

Message Too Old, No Replies

Table cells not aligned in columns

         

dmorison

6:51 pm on Oct 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Any idea what causes table cells not to be neatly aligned in columns?

I'm creating content that is "popped up" in one of those bubbles on a Google Maps display, and the HTML contains an absolutely bog standard table, nothing more complicated than:

<table>
<tr><td>one</td><td>two</td><td>three</td></tr>
<tr><td>alpha</td><td>bravo</td><td>charlie</td></tr>
</table>

However, instead of looking like this: (using hyphens because this forum software stips spaces)


one--two--three
alphabravocharlie

...it looks like this:

onetwothree
alphabravocharlie

Has anyone got any idea what styling or browser bug would cause the tabular layout to be completely ignored?

[edited by: dmorison at 7:10 pm (utc) on Oct. 12, 2005]

Sathallrin

7:07 pm on Oct 12, 2005 (gmt 0)

10+ Year Member



Using the code you gave it would look like this:

one--two--three
alphabravocharlie

you would need padding to get the extra space... but as to why the first line would not be following the columns, it sounds like it could be caused by an impropper code somewhere, make sure to check over your code and validate it.

dmorison

7:14 pm on Oct 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using the code you gave it would look like this

You're absolutely right I added the extra hypen for clarity - bad idea! I've edited the original to reflect the correct, expected layout...