+ 1

Css grid for images

Please guys, i want to make a grid for many images not same dimensions. How can i fix this problem with just html and css

2nd Nov 2020, 11:42 AM
amina
amina - avatar
5 odpowiedzi
+ 2
That can be solved with flexbox. More information under: https://www.w3schools.com/css/css3_flexbox.asp
2nd Nov 2020, 11:48 AM
JaScript
JaScript - avatar
+ 1
grid is 2D unlike flexbox. that is with grid you can for example specify the number of columns you want, specify their sizes, move a cell from one place to a desired one and many others
2nd Nov 2020, 12:27 PM
Sacalivin Obiri
Sacalivin Obiri - avatar
+ 1
amina Hi, I think grid will allow you more flexibility and handling images shouldn't be a problem. Mixing these three ressources might guide you in the good direction. https://youtu.be/v02MRRWTUr8 https://youtu.be/qm0IfG1GyZU https://css-tricks.com/snippets/css/complete-guide-grid/
2nd Nov 2020, 4:01 PM
EmmanueLZ.
EmmanueLZ. - avatar
0
So, we can not using Grid ?? If yes where we use css grid please ? What is the différent between css grid and flexbox ?
2nd Nov 2020, 11:50 AM
amina
amina - avatar
0
But images are also 2D so how can we know when we use flexbox and when we use css grid
2nd Nov 2020, 12:41 PM
amina
amina - avatar