I have a js script to switch pictures, but how do to the pictures were the same size?

I have a js script to switch pictures, but how do to the pictures were the same size?
here is the script5dfdcf927a23c670438939.png
April 3rd 20 at 18:53
1 answer
April 3rd 20 at 18:55
1) the easiest and Most obvious option is to make a div's instead of photos and pictures ask the kitty to these div'am. This is the least of the problems if there is no need for these pictures, for example, copy.
2) Create CSS styles that will be handling your images. Height, most likely, the number will be the same
3) Create a backend that will pass through the images and resize them to the desired size. (the most difficult and likely not effective)

Find more questions by tags CSSJavaScriptHTML