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
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to