Design comparison
Solution retrospective
Somehow the <button> will not allow me to change the font, or add a shadow. Otherwise I am quite happy with my solution!
Tried to code it mobile-first this time!
Community feedback
- @romila2003Posted about 2 years ago
Hi Veronica,
Congratulations π for completing this challenge, the grid component looks great and is responsive however I found some issues I want to address:
- Your button is missing the
type
attribute e.g.<button type="button" class="btn"></button>
- To make your button feel more like a button, you should give it the
cursor
property e.g.cursor: pointer;
- Regarding your question, you should set the
font-family
property for the button toinherit
and for yourbox-shadow
, it does work however the value of it and the color is to light to show e.g.
button { font-family: inherit; box-shadow: 10px 10px 20px hsl(218deg 9% 41% / 30%); }
The value I gave was just an example so feel free to change it to your choice.
Overall, great attempt and wish you the best for your future projects so keep coding π.
Marked as helpful0 - Your button is missing the
- @correlucasPosted about 2 years ago
πΎHello Veronica, congratulations for your new solution!
π― Your solution its almost done and Iβve some tips to help you to improve it:
You made your html structure entirely with
div blocks
but these div doesn't any semantic meaning, for this reason is better you use a better html markup improving your code, for example for each card you use<article>
instead of the<div>
.This article from Freecodecamp explains the main HTML semantic TAGS: https://www.freecodecamp.org/news/semantic-html5-elements/
The heading should follow the sequence, so you cannot jump from h1 to h3, follow the sequence of hierarchy as h1, h2, h3β¦
βοΈ I hope this helps you and happy coding!
0 - @hmadamkPosted about 2 years ago
don't add heading to choose you font size heading indicate how much nested the section is choose the right heading add change the font later other than that great job
0
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