Hassia Issah• 50,650
@Hassiai
Posted
Replace <div class="container"> with the main tag to fix the accessibility issue.
To center .component on the page, add min-height:100vh; display: flex; align-items: center: justify-content: center; to .container. instead of position: relative and its properties. add text-align center to h1 and p. give h1 and p the same padding left and padding right values. There is no need to give the img a height value. reduce the font-size for h1
Hope am helpful. Happy Coding
Marked as helpful
1