Design comparison
Community feedback
- @kaamiikPosted about 1 month ago
Hi. I have some notes I wanna mention to you:
-
There is some issues with your html. For the main image because It is decorative as I see, you do not need
alt
message. Even If you needed one, you have to use a good alt message to describe your image to a screen reader. For the profile picture you used analt
message but It's not describe it very well. So use a proper alt first. -
You can not wrap two interactive element with each other.
button
anda
tags are both interactive. Whenever you have a button shape in your design, If this button take you to a new page, So you have to usea
otherwisebutton
is a choice. So you don't need both of them together. Now think for this, Which tag is proper. -
I think for your
a
tag and the date, you do not need to usediv
. Also for yourh1
andp
There is no need to use it. Also For the profile name and picture, You need to have a space between these two. You can simply use flexbox for this. -
Your .attribution is a
footer
so first it should not be inside your main then usefooter
tag instead ofdiv
. -
On your CSS, You never ever have to limit your
width
andheight
for text containers. One thing you need for this and many other projects is to usemax-width
inrem
unit` So your container does not bigger and bigger. -
For your padding and margins also try to use
rem
andem
too.
At the end, unless you refactor this project, Do not start the next project. This is really important to solve this project problems then go for the next one.
Marked as helpful1@KarahDotjsPosted about 1 month agoHi,
Thank you so much for your detailed feedback! I appreciate you taking the time to go over these points.
CSS adjustments: I’ll replace hard width and height values with max-width in rem units for text containers, and start using rem and em for padding and margins where appropriate to improve scalability.
Finally, I’ll make sure to refactor @kaamiik
0 -
- @Axsel519Posted about 1 month ago
card-container needs to add a margin at the top
Marked as helpful0@Axsel519Posted about 1 month ago@KarahDotjs write this
.card-container { margin: auto; width: 380px; padding: 30px; background-color: var(--White); border-radius: 10px; box-shadow: 6px 3px 0px rgba(0, 0, 0, 5); margin-top: 5vh; }
Marked as helpful0@KarahDotjsPosted about 1 month ago@Axsel519 Thanks you for you help now it's working well I don't know can use vh unit for margin
0@Axsel519Posted about 1 month ago@KarahDotjs You can use px as you like but I like to use vh and vw because they fit the screen dimensions and are comfortable for me + there are many units you can use
Marked as helpful0@KarahDotjsPosted about 1 month ago@Axsel519 You're right, it's true that when I look at other people's projects, most of them use vh and vw for the units or rem and em
0@Axsel519Posted about 1 month ago@KarahDotjs Yes you can use whatever is comfortable for you. + Write to me if you need help.
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord