CSS tricks
Color of zoom links
by FranceImage
HTML
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css">
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
<div class="content">
<p>
<a href="#">This is a link</a>
</p>
<div id="map"></div>
</div>
CSS
#map { height: 300px; }
.content a {
color: green;
}
/* uncomment this to see the zoom links become black
.leaflet-bar a {
color: black;
}
*/
JavaScript
// create a map in the "map" div, set the view to a given place and zoom
var map = L.map('map').setView([48.858190, 2.294470], 16);
// add an OpenStreetMap tile layer
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
// add a marker in the given location, attach some popup content to it and open the popup
L.marker([48.858190, 2.294470]).addTo(map)
.bindPopup('This is the Eiffel Tower<br> Easily customizable.')
.openPopup();