I have a simple web page. For some reason, one of my div's (holding a bing map), is shifted way off in the blue. Here is the link:
Looks fine in Chrome/IE.
Thanks in advance,
M
I have a simple web page. For some reason, one of my div's (holding a bing map), is shifted way off in the blue. Here is the link:
Looks fine in Chrome/IE.
Thanks in advance,
M
Given the reports from and that the page renders correctly on their Firefox installs, the problem is most likely environmental or layout-related rather than a simple browser-wide bug. Common culprits are CSS positioning (absolute/relative), a deprecated <center> wrapper, parent container sizing/overflow, or the map widget initializing before its container has a stable size. The following checklist and examples are focused on narrowing the cause and applying reliable fixes.
Inspect and narrow the problem
position, left/top, margin, display, width and any transform rules.#MapCan { outline: 1px solid red; }.Practical CSS fixes (replace deprecated center usage)
<center> tag. For a fixed-width block:#mapWrap {
width: 700px;
margin: 0 auto;
position: relative;
}
#MapCan {
width: 100%;
height: 400px;
display: block;
} .mapWrapper { text-align: center; }
#MapCan { display: inline-block; vertical-align: top; width: 700px; } overflow: hidden on parents to contain floats.Map widgets and timing
Final checks
left values, or transforms on ancestor elements.Jump to Post— macneato 29Works fine on firefox 3.63
Works fine on firefox 3.63
what firefox version are you using? I'm using firefox 3.5.6. and it looks well here.
It might be a screen resolution problem, rather than a browser problem. Divs are slippery, and if they won't fit, they move.
Also remember that IE nests the surrounding elements and the sizes in the wrong order.
firefox 3.63 working with lower resolutions: 1024x768 and 800x600
Doubt it is a res issue though, his container is relative and #MapCan is relative to that. Dont know why you using the center tag though, isnt it deprecated?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.