Percentages do work, but you have to specify the size of the container
of that <div id="map_canvas">.
For example, if you have #map_canvas{width:100% !important; height:
100% !important;} but it's inside a <td class="maptableclass"> where
td.maptableclass{width:auto;height:auto;} then you will get 100% of
auto.  Or if you don't specify anything, you'll have 100% of nothing.
Seems odd, I know.  It took me a while to remember when I started a
map from scratch the other day, but that's the long and short of it.
-----side note-----  if you set your container to be something like
{width:100%; height:100%;}, you may wind up with an extra pixel in the
width and/or height depending on the user's browser.   CSS and in-line
styling can be a hack-and-slash operation with many exceptions.

On Jan 26, 5:37 am, Ando <[email protected]> wrote:
> Michal B,
>
> Thanks i gave the div a height and width again and it is now working
> fine, strange last time i had percentages now when using pixels it
> worked fine, although in examples i have seen percentages have been
> fine.
>
> Thanks again
> ando

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to