+ 1

How many pixels equal 1%?

When resizing an image, how do we change the size of an image from 1% to pixels?

7th Oct 2018, 3:42 PM
Charles X
Charles X - avatar
3 Answers
+ 1
It depends of the size of the screen and it's resolution.
7th Oct 2018, 4:13 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
I checked on SL and found out that 3px are equal to 1%. Check out my code: https://code.sololearn.com/W8H7fYoo48rq/?ref=app
7th Oct 2018, 7:57 PM
Charles X
Charles X - avatar
0
any size qualifiers except px and em depend on the size of the screen. If you want to test how the element will look on a smaller screen, consider putting the entire document in an iframe that had a specific width and height.
7th Oct 2018, 4:27 PM
SadPuppies
SadPuppies - avatar