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.
- Solution URL: solution URL
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- React - JS library (comingsoon)
In this section i learn use property place-items: center; a property GRID align items at center
<main class="container">
<section class="container_qr">
<figure class="qr_container-img">
<img class="qr_container-img-item" src="./images/image-qr-code.png" alt="qr-code">
</figure>
<div class="info_container">
<h3 class="info_container-title">Improve your front-end
skills by building projects</h3>
<p class="info_container-text">
Scan the QR code to visit Frontend
Mentor and take your coding skills to
the next level
</p>
</div>
</section>
</main>
main {
background-color: var(--Light-bg);
width: 100%;
height: 100vh;
display: grid;
place-items: center;
}
-
Guide to FlexBox - Our comprehensive guide to CSS flexbox layout. This complete guide explains everything about flexbox, focusing on all the different possible properties for the parent element (the flex container) and the child elements (the flex items). It also includes history, demos, patterns, and a browser support chart.
-
Guide to Grid - Our comprehensive guide to CSS grid, focusing on all the settings both for the grid parent container and the grid child elements.
- Website - Iván Serrano
- Frontend Mentor - @IvanSerranoGit
- Twitter - @lvanSerrano