How to reduce the dimensions of images on mobile | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

How to reduce the dimensions of images on mobile

How to reduce the dimensions of images on mobile for whole website to improve loading time. Like some slider images loading on desktop with 1200 width i want to load same images with max width of the screen size.

30th Aug 2019, 6:32 AM
Uzair Malim
Uzair Malim - avatar
4 ответов
+ 5
Uzair Malim use pixels (px) or percentage (%) or vh/vw units with css (max-width or min-width) I did it in my very old code. CSS tab, ln 185 https://code.sololearn.com/Wkz8frsx1DVd/?ref=app
30th Aug 2019, 6:23 PM
r8w9
r8w9 - avatar
+ 1
Do you whant to reduce the size or weight of your image ? If you reduce size for a responsive design, you will not improve loading time as the weight will remain the same...
30th Aug 2019, 4:21 PM
Jess
Jess - avatar
+ 1
I want to reduce the weight of the images Jess
30th Aug 2019, 4:24 PM
Uzair Malim
Uzair Malim - avatar
0
Do u feel that sometimes , questions can be misunderstood since they've been asked in " the wrong way" such that when you read it , you can be led to the wrong answer? Or is it just me ?
31st Aug 2019, 5:57 PM
Lamri Salim
Lamri Salim - avatar