0

Equal image height

I have images of different heights that are links. Do I have to set each individual height with a container or can I change them all together? here is the a link to a page I am discussing: https://code.sololearn.com/WQxEBMjTNdWk

20th Apr 2020, 4:36 PM
David Paredes
David Paredes - avatar
6 odpowiedzi
+ 3
No you don't need it . just make a div tag and specify its height . And then add image with a common class then declare the height 100% in css
20th Apr 2020, 4:54 PM
Ayush Kumar
Ayush Kumar - avatar
+ 3
Flexbox does the trick :)
20th Apr 2020, 7:31 PM
Wesley van Peer
Wesley van Peer - avatar
+ 1
No, you can set height for both of them at a time using <div> tag and add Ur img tags inside it and mention the CSS code as height : 50px or 50%
20th Apr 2020, 5:41 PM
Nikhil Maroju
Nikhil Maroju - avatar
0
huh can i see an example of this working?
20th Apr 2020, 5:42 PM
David Paredes
David Paredes - avatar
0
I posted a piece of my code
20th Apr 2020, 5:58 PM
David Paredes
David Paredes - avatar
0
for some odd reason i couldnt put a percentage on .lessonImages and had to use pixels
20th Apr 2020, 9:33 PM
David Paredes
David Paredes - avatar