[OpenLayers-Users] over-riding CSS when linked to live OL
Michael
mdm at yachtpc.com
Wed May 25 13:26:48 EDT 2011
In general, I think, loading a css file AFTER you load the OL css would work
But wait a minute, I ran into a problem here, which is that OL
dynamically calls its native css somehow. So, unless you host yourself
and rewrite, you need to set the theme for the map equal to null in
order to stop that
map = new OpenLayers.Map({
div: 'map_canvas',
theme: null
}
);
Like that.
Michael
On 5/25/2011 10:14 AM, Nicholas Efremov-Kendall wrote:
> Hi Everyone,
>
> I apologize now for what maybe an relatively simple question. I've got
> my map-div nested within a #content div within a #wrapper div. For
> demo purposes I've been linking to the live version of OL via the URL.
> How can I over-ride the CSS defaults, so that I can center my map
> using a specified height and width, and then pushing it in with
> padding. I was only able to do this with firebug when I killed the
> div.olMap 0 padding and and mar
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110525/410c0083/attachment.html
More information about the Users
mailing list