Also, instead of modifying style.css, one can explicitly change the styles in the page that the map will appear via style tags, like this:
<link rel="stylesheet" href="http://www.openlayers.org/dev/theme/default/style.css" type="text/css" /> <style type="text/css"> #mapDiv { width: 600px; height: 450px; border: 1px solid black; background-color: red; } div.olControlMousePosition { background-color: #ffffff; font-size: smaller; font-weight: bold; } .olControlScale { background-color: #ffffff; font-size: smaller; font-weight: bold; } </style> That way, one can reference the style.css source for OpenLayers at the OpenLayers web site, without having to host the style.css on your server. This is good for when all you want to modify is just a few things, like the mouse position control appearance. Just remember to reference both the link tag as well as your style tags (see above example; include the link tag reference to the style.css, as well as your style tags). In the above example, #mapDiv refers to the div where the map will appear. Mike Quentel ----- Original Message ---- From: Christian López Espínola <[EMAIL PROTECTED]> To: Pedrazzi Gelsomini <[EMAIL PROTECTED]> Cc: [email protected] Sent: Friday, 8 June, 2007 10:21:28 AM Subject: Re: [OpenLayers-Users] MousePosition Control Hi Francesca, I have tested it and it works for me. I modified the div.olControlMousePosition class on the style.css Are you changing that class? What is your folder structure? And the browser you are testing? Maybe the css is not being referenced, this information could be useful. Hope this helps On 6/8/07, Pedrazzi Gelsomini <[EMAIL PROTECTED]> wrote: > Hi everyone.... > > How can I change the color and the size of the coordinates that appear in > the bottom-right corner of the map when I add the MousePosition Control? > I need to have them a little bit bigger than the defaul and white. > I tried to modify the style.css file that I found in the theme folder, but > it doesnt work... > > Cheers, > Francesca Pedrazzi > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- Regards, Christian López Espínola _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users ___________________________________________________________ New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
