
Design comparison
Solution retrospective
I'm getting better at understanding how to shape and organize elements on the website using margin, padding and flexbox. I'm also proud of using chaining selectors to reduce retyping code, even if it's only a few lines. I want to work on making small adjustments to one section of code at a time rather than trying to think about everything at once.
What challenges did you encounter, and how did you overcome them?I found an issue with spacing and sizing elements to fit the example. I had to review how padding and margin works on elements which then gave me the clarity to make the changes.
I also never remembered how hover worked and changing the mouse icon to a finger pointer. I read up on hover from w3schools, then downloaded and added a new icon to the images folder for the mouse.
What specific areas of your project would you like help with?I want to know how to use chaining and other techniques to reduce errors and overall editing with CSS. I also want to know if there's a better way to position elements rather than what I had used.
Community feedback
- @MarziaJaliliPosted 9 days ago
Awesome work!
A cherry on the top?
- For the smoother color of the links you can use the transition property:
Take the code below as an example:
transition: background-color 0.5, color 0.5s; /* or .5s for short */
This ensures that the colors will change after 500 milliseconds which makes it look even better.
- In addition, if you want to center the card, you can set the code below in the body selector:
body { display: grid; place-items: center; min-height: 100vh; }
- Make sure that the card is the only child element of the <body>. If not wrapp everything nested inside <body> with the <main> element. It will look something like this:
<body> <main> <!-- every element nested inside --> </main> </body>
It definitely works!
😁😁😁
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