<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
In general, I think, loading a css file AFTER you load the OL css
would work<br>
<br>
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<br>
<br>
map = new OpenLayers.Map({<br>
div: 'map_canvas',<br>
theme: null<br>
}<br>
);<br>
<br>
Like that.<br>
<br>
Michael<br>
<br>
On 5/25/2011 10:14 AM, Nicholas Efremov-Kendall wrote:
<blockquote
cite="mid:BANLkTiky80v9hd+tJ74JX_wAYXOp0XuKkw@mail.gmail.com"
type="cite">Hi Everyone,
<div><br>
</div>
<div>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</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
</blockquote>
</body>
</html>