Forum
Responsive Map
Has anyone had any luck with a responsive map at all? I'm struggling with the following code:
<style type="text/css">
div.map {
display: inline-block;
padding:10px;
border-radius: 5px;
border: 1px solid #fff;
border-image: linear-gradient(to bottom, #000000 0%,#ffffff 100%);;
box-shadow:inset 0 0 10px 0 #888;
background-color: #fff;
}
.cmsmap {
min-width: 200px;
min-height: 200px;
max-width: 500px;
max-height: 500px;
}
.cmsmap img {
max-width: none;
}
</style>
<div class="map"><perch:content id="map" type="map" label="Location" zoom="15" /></div>
It says in a tiny window, rather than fitting into the space.
It looks like you're not setting a witch at all. Have you tried?
I initially had width:100%, but it didn't like that.
What happened?
With the following code nothing appears at all, you briefly see the Map as the page builds but it disappears.
It appears its the height thats important, I've gone for a fixed 400px and thats worked. So my full code incase anyone is interested is:
Great!