/ Published in: CSS
Important: this snipplet has moved to Github.
Moves the NavBar "outside" of the map so that it doesn't interfer with Map.setView and adds a subtle shadow on the NavBar and its dropdown menus.
Expand |
Embed | Plain Text
#YourMapContainer { overflow: hidden; } #YourMapContainer .MicrosoftMap { overflow: visible !important; margin-top: 30px !important; background: none !important; } #YourMapContainer .MicrosoftMap .NavBar { width: 100%; top: -30px; -moz-box-shadow: 0px 0px 4px #000; -webkit-box-shadow: 0px 0px 4px #000; box-shadow: 0px 0px 4px #000; -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=180, Color='#888888')"; filter: progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=180, Color='#888888'); } #YourMapContainer .NavBar_zoomDrop, #YourMapContainer .MicrosoftMap_NavBar_typeMenu { -moz-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.5); -webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.5); box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.5); border: 1px solid #aaaaaa; border-top: none; }
You need to login to post a comment.
