@sarahalvessa
Submitted
Adoraria receber feedbacks.
@rafaelvieiracosta
@sarahalvessa
Submitted
Adoraria receber feedbacks.
@rafaelvieiracosta
Posted
Good work! 👍 It's really impressive to see that you didn't use any display flex
or grid
to solve the challenge, you have a lot of patience
I have a tip for you to ensure the centering of your component independent of the screen, in case you want to test:
margin-top: 40px auto
from your #container
and add the following code to the body
:body{
margin: 0;
display: grid;
place-items: center;
min-height: 100vh;
}
@Prince-Ranaa
Submitted
This is the best that I could do. All the feedback are welcome, any thing that I might have missed than let me know. Thank you
@rafaelvieiracosta
Posted
Hello @ Príncipe-Ranaa Good job! 👍The way you centered it is amazing
But your site is generating a scrollbar because of the default body margin, to remove it just add margin: 0
to body
I also suggest you do a little research on reset CSS and discover the advantages of using box-sizing: border-box
Marked as helpful
@NitinSaini007
Submitted
@rafaelvieiracosta
Posted
Hi! @NitinSaini007 You did a great job ✨
I have a tip for you to ensure the centering of your component regardless of the screen:
margin-top: 70px
from your .container
, then add the following code to the body
:body{
display: grid;
place-items: center;
min-height: 100vh;
}
@catherineisonline
Submitted
Hello, Frontend Mentor community! This is my solution to the Article preview component.
I have read all the feedback on this project and improved my code. Due to the fact that I published this project very long ago, I am no longer updating it and changing its status to Public Archive on my Github.
You are free to download or use the code for reference in your projects, but I no longer update it or accept any feedback.
Thank you
@rafaelvieiracosta
Posted
Good job! ✨
The way you centered it works for screens with 1440px but when you put it on a bigger screen it ends up breaking, and your article ends up expanding too much. If you want to test, one way to solve these problems would be the following:
margin
from your .article-container
and add the following code to your main tag:main{
display: flex;
justify-items: center;
align-items: center;
min-height: 100vh;
}
.article-container
from expanding, just put a max-width on it:.article-container{
max-width:720px;
}
If you only have a 1440px screen, you can test other sizes using your browser's DevTools
@riemann0
Submitted
@rafaelvieiracosta
Posted
Perfectly perfect!
@AbdulrahmanFE
Submitted
....
@rafaelvieiracosta
Posted
This comment was deleted
@AbdulrahmanFE
Submitted
Open to suggestions
@rafaelvieiracosta
Posted
This is perfectly perfect! Very good @AbdulrahmanFE