@AliNematt
Posted
Hi Benjamin, congratulations for your solution!
I saw your code and I have some recommends for you!
- It is customary to use
style.css
for main stylesheet , So it's better to usestyle.css
instead ofindex.css
. - It's not necessary to use same codes for responsivity! for responsive design just change the variable property . for example: if your
width
in desktop is same with mobile just skip it! and remember that always style desktop at the first! - about your HTML ,
containerQr & containerImg & containerParrafos
aren't important. for example : HTML :
<div class="mainContainer">
<img src="images/image-qr-code.png" alt="Qr">
<h1>Improve your front-end skills by building projects</h1>
<p> Scan the QR code to visit
Frontend Mentor and take your
coding skills to the next level</p>
</div>
and your CSS :
body {
background-color:var(--Lightgray);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
font-size: 10px;
font-weight: 700;
font-family:'Outfit', sans-serif;
text-align: center;
color: var(--Darkblue);
}
.mainContainer{
background-color: var(--White);
border-radius: 12px;
display: flex;
align-items: center;
flex-direction: column;
width: 300px;
height: 480px;
}
Hope it helps you! Wish you the best.
Marked as helpful