@NehalSahu8055
Posted
Regading your query
- You are already using flex to center the card.
- One alternate way to do the same.
- USING GRID
body{
min-height: 100vh;
display: grid;
place-items: center;
}
Marked as helpful
What do you think is the best way to center the div?
@NehalSahu8055
Posted
Regading your query
- USING GRID
body{
min-height: 100vh;
display: grid;
place-items: center;
}
Marked as helpful
@NehalSahu8055
Posted
Hello Coder π.
Congratulations on successfully completing the challenge! π
Few suggestions regarding design.
β¨ Use Semantics
for the proper design of your code.
<body>
<header>
<nav>...</nav>
</header>
<main>...</main>
<footer>...</footer>
wrap up `.attribtution` div inside your footer.
</body>
Every site must have one h1 element describing the main content of the page.
So, Add a level-one heading instead of h2 to improve accessibility.
For non-decorative images
give meaningful and descriptive alt like
alt= "QR code to frontend mentor website"
.
Use responsive units(rem, em, %)
from next project. Explore respective use cases on google.
link.
I hope you find this helpful.
Happy codingπ
Marked as helpful
@0xabdulkhaliq
Posted
QR iMAGE ALT TEXT πΈ:
alt
attribute which should explain the purpose of the image
.alt
with qrcode
is not even explaining for what the QR image need to be used.alt
with meaningful text which explains like QR code to frontendmentor.io
<img src="/images/image-qr-code.png" alt="QR code to frontendmentor.io">
@0xabdulkhaliq
Posted
Hello there π. Congratulations on successfully completing the challenge! π
HTML π·οΈ:
<div>
or <span>
.
They are use to provide a more precise detail of the structure of our webpage to the browser or screen readers<main>
element should include all content directly related to the page's main idea, so there should only be one per page<footer>
typically contains information about the author of the section, copyright data or links to related documents.<div class="container">
element with the proper semantic element <main>
in your index.html
file to improve accessibility and organization of your page.
I hope you find this helpful π Above all, the solution you submitted is great !
Happy coding!
@User9511
Posted
Looks good!
A small update I would make would be to update the following, This will make your project look more like the design.
.container {
max-width: 19rem;
background-color: white;
padding: 1rem;
border-radius: 18px;
text-align: center;
margin: 0 1em;
}
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord