Scale image for mobile view | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Scale image for mobile view

Could anyone direct me how can my images be scaled automatically so they are resized for mobile view and horizontally in line with each other. Here below piece of html, I do like the look when you visit page from the desktop, they are inline horizontally with each other, but when i switch to mobile view, they appear vertically. <div style="text-align: center;"> <img src="http://i63.tinypic.com/auxv11.png" style="max-width:210px;height:auto;"/> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; <img src="http://i64.tinypic.com/33z39mt.png" style="max-width: 200; height: 200;"/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <img src="http://i66.tinypic.com/x3a0kn.png" style="max-width:150px;height:150px;"> </div>

5th Dec 2016, 4:55 AM
Timur Shamuradov
Timur Shamuradov - avatar
1 Answer
+ 1
I think you have to define value of width in percent, not pixel. style="width: 50℅" Or using @media-width, in css3.
5th Dec 2016, 7:17 AM
Fendi Septiawan
Fendi Septiawan - avatar