You can easily change the look of the map container by wrapping our code in your own <div> and adding to its style. Here are some popular examples.
1. How to center the map To center the map on the page (if its width is less than 100%), wrap our code in a div with the style display: flex; justify-content: center;.
<div style="display: flex; justify-content: center; padding: 20px 0;"><!-- The beginning of our insertion code--> <div id="divenumber-map" style="width: 800px; height: 400px;"></div> <script src="https://center.divenumber.com/public/map.js" ... ></script> <!-- The end of our code --> </div>
Example:
2. How to add a shadow and soft padding This will add "volume" to the map and separate it from the background, which looks especially good on sites with textured or colored backgrounds.