+ 1

How do you change the size of a picture on a slider?

I am doing a slide thing with some picture of Eddie, but I want to change the size of some. How does that work? https://code.sololearn.com/WlVVYHvFLqOw/?ref=app

21st Feb 2020, 6:07 PM
Aiki
Aiki - avatar
10 Answers
+ 2
In the <img> tags change the value to the height and width. Those tags are in the HTML section
21st Feb 2020, 6:16 PM
Cmurio
Cmurio - avatar
+ 1
You can change the value of the height and width properties of the image properties in the html tag
21st Feb 2020, 6:13 PM
Cmurio
Cmurio - avatar
+ 1
En las etiquetas <img> cambia el valor a la altura y anchura. Esas etiquetas estĂĄn en la secciĂłn de Html
21st Feb 2020, 6:15 PM
Cmurio
Cmurio - avatar
+ 1
Do you want to make the Images smaller so that it can be displayed on the screen completely?
21st Feb 2020, 6:17 PM
Cmurio
Cmurio - avatar
0
What do you mean by that?
21st Feb 2020, 6:14 PM
Aiki
Aiki - avatar
0
? Sorry, I can't read what you wrote
21st Feb 2020, 6:15 PM
Aiki
Aiki - avatar
0
Okay. Thanks!
21st Feb 2020, 6:16 PM
Aiki
Aiki - avatar
0
No, I'm just wondering how/if you can change picture's size individually.
21st Feb 2020, 6:18 PM
Aiki
Aiki - avatar
0
Thanks. What I'm trying to ask is if you can change an image inside the slide individually. Like the last picture, for example.
21st Feb 2020, 6:24 PM
Aiki
Aiki - avatar
0
For a slider you can use CSS. I used object-fit attribute for a slider. Example: img {   object-fit: contain; } For another slide I used PHP to make an image object, get image dimmesions, set the ratio and apply it to the html width and height on a loop so images resized to be on the same width and height.
23rd Feb 2020, 1:29 PM
carlos mercado
carlos mercado - avatar