Here is some code I have to display 2 images next to each other:
<img style="padding-left:25%;margin-top:15px;margin-right:20%" src="~/img/1.png" /><img style="margin-top:15px" src="~/img/2.png" />
As shown below:
https://i.sstatic.net/m2yDU.png
However, on smaller screens, the 2 images will be displayed underneath each other (which is okay), but they won't be vertically aligned as seen in the image below:
https://i.sstatic.net/d8WWL.png
How can I correct this? In simple terms, how do I add a left margin to the second image only when it appears on a separate line?