The ScreenShots of the jsx and css code and that of the web page is given below.
            Asked
            
        
        
            Active
            
        
            Viewed 43 times
        
    -1
            
            
         
    
    
        Temani Afif
        
- 245,468
- 26
- 309
- 415
 
    
    
        SCodeyRHODES
        
- 25
- 5
- 
                    4[Why you should use code examples instead of images](https://meta.stackoverflow.com/a/285557/1377002). [Here's some documentation on how to create a React snippet](https://meta.stackoverflow.com/a/338538/1377002). – Andy Jun 09 '23 at 15:25
1 Answers
0
            Try giving the parent div a display flex and using the justify-content and align-items properties like this
.movie_image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  border: 2px solid black;
}
.image {
  height: 100%;
} 
    
    
        Nishant Jha
        
- 74
- 1
- 4

