@Hassiai
Posted
To center the main on the page using flexbox, add min-height:100vh; display: flex; align-items: center: justify-content: center; to the body.
To center .container on the page using flexbox:
body{
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful
Thanks for the insight @Hassiai, suddenly I just found out that there is a bug in the background-image: url()
and I simply use img
in HTML instead of CSS for the background image.
@Hassiai
Posted
@aaditamanugraha if you us the img , give the img a mix-blend-mode: multiply and the div a background-color of soft violet