@PhoenixDev22
Posted
Hello MoDuke-12,
Congratulation on completing this challenge. your solution looks great. I have some suggestions regarding your solution if you don’t mind:
-
Use the
<main>
landmark to wrap the card. HTML5 landmark elements are used to improve navigation experience on your site for users of assistive technology. -
The alternate text should be present in that image as it’s an important content (informative image). And it should tells the users where it takes : like
Qr code to frontend mentor
CSS:
- To center the component on the middle of the page you may use the flex/grid properties with
min-height 100vh;
to the body.(Then you can remove the margin: 6rem). Also you can add a little padding to the body to prevent the card from hitting the screen edges.
body{
/*margin: 6rem; */
align-items: center;
min-height: 100vh;
}
-
height: 630px;
It's not recommended to set height to component, let the content of the component define the height. -
Last ,the better way to style your HTML elements is using single class selector.
Aside these , Good work! Hopefully this feedback helps
@MohammedDuke
Posted
@PhoenixDev22 I really enjoyed your comment and thank you for your time to help me Thank you
@PhoenixDev22
Posted
@MoDuke-12 You’re welcome and glad it was helpful .