I have been trying to get my head around this issue for hours now - no result so far, so I am turning to you now.
I have embedded a google map in my website. Then I gave the div a border-radius of 100% in order to make the map appear circular. So far, so good.
But when I wanted to make the circle scalable/responsive, I tried to use the old padding-bottom css-hack which I found ages ago here on stack overflow. Thanks to this trick, the circular map scales perfectly well now.
However, this also seems to set the map off center and I cannot figure out why or come to a fix. I am really looking forward to any solution here ...
Best regards,
Jan
I have a fiddle demonstrating the issue here (With complete HTML/JS/CSS) CSS below:
.cms-map-wrapper.circular {
width: 50%;
margin: auto;
background-color:red;
}
.cms-map {
border: solid 5px blue;
border-radius: 100%;
padding-bottom: 100%;
margin-bottom: 20px;
}