w3school-youtube-how to ...

Solution retrospective
Do you have any questions about best practices?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @NitheeshKumar-C
Hi there 😀,
I can help with some issues. You can make the body content center using
flex-box
,Example for this problem:
body{ min-height: 100vh; display: flex; justify-content: center; align-items: center; }
and remove
margin: 10em 30%;
from.QRcode
.If you think this is helpful please mark as helpful.
Happy Coding 👨💻,
Nitheeshkumar
Marked as helpful - @denielden
Hi Kamiya, great work on this challenge! 😉
Here are a few tips for improve your code:
- add
main
tag and wrap the card for improve the Accessibility - add descriptive text in the
alt
attribute of the image - remove all unnecessary code, the less you write the better as well as being clearer: for example the
div
container of image - to make it look as close to the design as possible remove
height
from.QR-siz
class - remove all
margin
from.QRcode
class - use flexbox to the body to center the card. Read here -> best flex guide
- after, add
min-height: 100vh
to body because Flexbox aligns child items to the size of the parent container - not use
<br>
for brea the text... make it wrap according to the width it has available - instead of using
px
use relative units of measurement likerem
-> read here
Overall you did well 😁 Hope this help!
- add
Join our Discord community
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