@kabir-afk
Posted
Hey, great job on completing the challenge , you look gorgeous btw , you see in CSS things are prioritized as you go down in the code . . . the problem is here
section > .box {
display: grid;
grid-template-columns: repeat(3, 1fr);
margin-top: 60px;
gap: 1.5rem;
margin-bottom: 60px;
width: 900px;
margin-inline: auto;
}
section > .box {
display: grid;
grid-template-columns: repeat(2, 1fr);
align-items: center;
gap: 1.5rem;
}
you have given multiple styles to your section > .box
, and according to what I said earlier , your code that has grid-template-columns: repeat(2, 1fr);
will be prioritized, all I'm saying is that you could have deleted the earlier styles, that is not even the main issue , for showing things inside a single row , you could have used
section{
display:flex;
}
but that is nowhere to be seen , as far as the images are concerned , you should use
<div class = "some-class"><img src="url"></div>
img{
max-width:100%
}
this way when you control the dimensions of your div your image will behave accordingly and it'll be responsive as hell . . . if you want I can fork your repo , so that I can show you what my approach to the solution would have been . . .
As far as pixel perfection is concerned , you can try visiting here . . .it will give you a step by step guide on how to achieve a design accurate screenshot
Marked as helpful
@feroztia
Posted
@kabir-afk Thank you so much for respond!:) I'll try to fix it