map shifted in container...

573
1
08-27-2013 10:40 AM
AaronDouglas
New Contributor
Hi all,

I'm working on a mapping application and am running into an issue I have encountered once or twice, but cannot remember the cause.

Essentially, I have a div contained within a table. The map is generated and displayed in the div, but it is shifted to the right. This is happening in Firefox and Chrome, and works fine in IE.

I've attached a screen shot so you can see what I'm referring to. The blue border represents the edges of the div (which has a height of 500px and width of 600px).

Any input is appreciated.

I thought I'd give a little more detail....

The div that contains the map is part of code that is dynamically generated through an ajax request.
I don't really see how this would make a difference, but it does seem to be...
0 Kudos
1 Reply
AaronDouglas
New Contributor
For those interested, I solved the issue.

Turns out maps don't like being nested in a table cell that has a style of "text-align: center;"
applied to it. Once I reworked the layout to get it out of those, everything started working fine.
0 Kudos