+ 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
10 Antworten
+ 2
In the <img> tags change the value to the height and width. Those tags are in the HTML section
+ 1
You can change the value of the height and width properties of the image properties in the html tag
+ 1
En las etiquetas <img> cambia el valor a la altura y anchura. Esas etiquetas están en la sección de Html
+ 1
Do you want to make the Images smaller so that it can be displayed on the screen completely?
0
What do you mean by that?
0
? Sorry, I can't read what you wrote
0
Okay. Thanks!
0
No, I'm just wondering how/if you can change picture's size individually.
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.
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.