@Hassiai
Posted
Replace <div class="main"> with the main tag and <h2> with <h1> to fix the accessibility issue. click here for more on web-accessibility and semantic html
The body has a wrong background color.
For a responsive content which won't require a media query for this challenge, replace the width of .main-container with max-width and give it a fixed value. eg: max-width: 320px
. Give the img a max-width of 100%.
Give p and h1 the same margin-left, margin-right and margin-top values. give p a margin -bottom value. h1, p{margin: 0 15px; margin-top: 15px} p{margin-bottom: 15px;}
.
Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful
@reanderagulto
Posted
@Hassiai Thanks for the suggestions! Highly appreciated
@reanderagulto
Posted
@Hassiai updated the solution with your suggestions. Thanks!