Here is my challenge:
I have three different sized round images (disks) that are centered within and stacked on top of each other, largest to smallest. I am now trying to have them be responsive and shrink with smaller browser windows as well as screens by staying centered within each other and shrink with the same ratio. That also means that all three images have to shrink when the window gets smaller than the largest image.
Any help is highly appreciated.
HTML:
<div><a href=".../url1/"><img class="round1" alt="" src=".../roundimage1.png"/></a></div>
<div><a href=".../url2/"><img class="round2" alt="" src=".../roundimage2.png"/></a></div>
<div><a href=".../url3/"><img class="round3" alt="" src=".../roundimage3.png"/></a></div>
CSS:
.round1 {
float: left;
z-index: 1;
position: absolute;
max-width: 1000px;
height: auto;
top: 150px;
left: 150px;
}
.round2 {
float: left;
z-index: 2;
position: absolute;
max-width: 800px;
height: auto;
top: 250px;
left: 250px;
}
.round3 {
float: left;
z-index: 3;
position: absolute;
max-width: 600px;
height: auto;
top: 350px;
left: 350px;
}
%orvwinstead. This is assuming yourhtml,bodystyles are100%/vw/vh. - Albzi