0

Responsive image in CSS

How can I make an image responsive to different screen size with CSS?, please.

6th Nov 2020, 9:06 PM
Muhammad Tijjani Umar
8 Respuestas
+ 1
OK thanks I will try it
7th Nov 2020, 8:03 AM
Muhammad Tijjani Umar
+ 1
Thank you all for your response, I really appreciate your support but please none of the techniques work
7th Nov 2020, 9:10 PM
Muhammad Tijjani Umar
+ 1
I didn't because when I write the code given to me, the image display it originally size rather than the one stated in the CSS CODE
7th Nov 2020, 9:16 PM
Muhammad Tijjani Umar
0
OK thank you but I tried this too, but very unfortunate the image some times didn't fit the screen width
6th Nov 2020, 9:29 PM
Muhammad Tijjani Umar
0
img {   width: 100vw; }
6th Nov 2020, 11:10 PM
JaScript
JaScript - avatar
0
Muhammad Tijjani Umar did you find out the right solution for you code, what is it?
7th Nov 2020, 9:14 PM
JaScript
JaScript - avatar
0
You cannot show your attempt? This is necesary for getting help.
7th Nov 2020, 9:29 PM
JaScript
JaScript - avatar
0
Finally, I was able to solve the problem by using 'width:100% and height to a number I want, it gives me what I want thank you all.
28th Nov 2020, 10:08 AM
Muhammad Tijjani Umar