@kimodev1990
Posted
To center your image :
- you could add in your div class .container :
display: flex ;
justify-content: center ;
align-items: center ;
padding: 1 rem ; as you wish
- Then It's better to insert & wrap image - here and in future designs - under div so you could have better responsive design, In HTML :
<div class= "image">
<img src="image location" alt="">
</div>
- Then in CSS ;
.image {
width: 100% ;
display: flex ;
}
.image>img{
width: 100% ;
}
P.S : There are several ways to center the image, But this is my approach when I code designs like these.
- You could use clamp ( ) method in your coding for font-size, width, margins, padding, etc., So the designed sizes will change according to the viewport dimensions having a responsive design and will be suitable for any device layout.
Hope you find this Helpful.
Other than that, Really Nice work & keep Going on
Marked as helpful