Hello, I am having trouble with the responsiveness of my div. I want these two images to stack on top of each other when the window is resized. I have attached a screenshot to demonstrate exactly what I am trying to achieve. I can't seem to figure out what's wrong with my CSS code. I hope someone can help me.
.gender-selector input {
-webkit-appearance: none;
-moz-appearance: button;
appearance: button;
margin: 0;
padding: 0;
}
.women {
position: relative;
left: 100px;
}
.man {
position: relative;
left: 210px;
}
<div class="gender-selector">
<label>
<input class="gender" type="radio" name="gender" value="w" onclick="processPhase1()" />
<img src="https://cdn1.iconfinder.com/data/icons/user-pictures/100/female1-512.png" width="180px" height="180px" class="women">
</label>
<label>
<input class="gender" type="radio" name="gender" value="m" onclick="processPhase1()" />
<img src="https://cdn1.iconfinder.com/data/icons/user-pictures/100/male3-512.png" width="180px" height="180px" class="man">
</label>
</div>