@guilleoem
Posted
Change this properties
#container {
display: inline-flex;
flex-wrap: wrap;
height: 100%;
justify-content: center;
}
And try this
#container {
display: flex;
flex-direction: row;
height: 400px; /*adjust this!!*/
justify-content: center;
align-items: center;
}
@BismeetSingh
Posted
@guilleoem Is a fixed height a good idea ?
@guilleoem
Posted
@BismeetSingh No. that is the reason why I left you as a clarification that you adjust the height. the properties that I left you as an example is for you to see how to center the container.
@BismeetSingh
Posted
@guilleoem I can do something like this : picture,picture > img { height: 30rem; }, I dont know if I should that though,
@guilleoem
Posted
@BismeetSingh Yes, by giving that properties to the picture element, the height of #container sets the height of picture also. however you must adjust de width of #content.