This is a solution to the QR code component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
- Live Site URL: https://lucasepk.github.io/QR_website/
- HTML5
- CSS
With this challenge I learned about divs, classes, ids and CSS since I never used it before. I also learnt to import fonts
The following code is the main one in the html part, where I applied the new things I learnt:
<div class="central_block">
<img id="QR" src="images/image-qr-code.png" alt="QR code">
<p class="bold">Improve your front-end<br>skills by building projects</p>
<p class="normal">Scan the QR code to visit Frontend<br>Mentor and take your coding skills to<br>the next level</p>
</div>The following css code was the most challenging, and I'm still not sure how good it is:
div.central_block{
margin: 70px auto; /*centers div (finally)*/
width: 295px;
padding: 10px;
text-align: center;
border-radius: 20px;
background-color: hsl(0, 0%, 100%);
}I want to focus on placing elements on a webpage since I still don't fully get it. Maybe get into flexbox and grid to get a better understanding of it.
I also want to learn about how to adapt to different page displays, like desktop and phone or different size windows.
- Learn CSS Position In 9 Minutes - This helped me clarify some things about how css border, margin, padding work and some interesting position settings.
- Learn CSS in 20 Minutes - This helped me to understand CSS syntax, parent-child system, classes and ids.
- Frontend Mentor - @LucasEPK
