I have been building an app that displays movie titles and I am at the point of styling the app. I am using the App.css
file to do all the CSS. I want the app to look something like this
Where if there is no image or the word is too long, then the movie card breaks off into random sizes. What can I do to make all the movies I search for appear like how they do in the first picture
Here is some of my CSS code
.container {
display: flex;
justify-content: center;
align-items: center;
margin-top: 1rem;
}
.movies {
display: flex;
justify-content: space-around;
align-items: center;
flex-wrap: wrap;
flex-direction: row;
margin-top: 1rem;
padding: 4rem;
}
.movies-items {
display: flex;
align-items: center;
flex-direction: column;
border-style: solid;
padding: 1rem;
margin-top: 1rem;
}
.image{
width: 40%;
height: 40%;
border-style: solid;
}
.title{
font-size: 30px;
}
.search-input {
width: 50%;
padding: 5px;
font-size: 25px;
border-style: solid;
}