It's the "inherited CSS problem".

The API constructs the infowindow outside the map (at which point it 
uses the "h6" CSS for the top line, which specifies a font size of 
0.9em) it then asks the API how large that is and constructs the 
infowindow graphics accordingly. Then it attaches the infowindow to the 
map, at which point the top line inherits the "#map h6" CSS which 
specifies a font size of 1.1em, and that's enough of a change to cause 
that line to wrap, causing everything below it to get shifted downwards.

See: http://econym.org.uk/gmap/css.htm for how to fix it.


Hint: Since I wrote that page, Google Chrome has become available. If 
you highlight the line in Google Chrome, right click it and choose 
"Inspect Element" the style inheritance is displayed in the "Style" 
panel.

-- 
Mike Williams
http://econym.org.uk/gmap



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to