Hello,

I have tried to modify some of the css elements as shown below.  The
div.olControlMousePosition works, but the OverviewMap elements do not work. 
If I  modify the OpenLayers style.css file itself, the elements work.  I am
using OpenLayer 2.5.  Thanks for any help.  -Paula

<html>
<head>
    <link rel="stylesheet" href="../theme/default/style.css" type="text/css"
/>
    <style type="text/css">
                div.olControlMousePosition {
                        background-color: #ffffff; 
                        font-size: smaller;
                        font-weight: bold;
                }        
                .olControlOverviewMapContainer {
                        position: absolute;
                        bottom: 40px;
                        right: 0px;
                }        
                .olControlOverviewMapMinimizeButton {
                        right: 0px;     
                        bottom: 90px;
                }    
                .olControlOverviewMapMaximizeButton {
                        right: 0px;
                        bottom: 90px;
                }
    </style>
    <script src="./lib/OpenLayers.js"></script>

-- 
View this message in context: 
http://www.nabble.com/Adding-css-elements-in-javascript-not-working-tp14316592p14316592.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.

_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to