Design comparison
Solution retrospective
Changing root font size scales all rem-based elements proportionally, For screens up to 28.5rem wide: Root font size: 12px (default is 16px) 🖥️
Learn:- To dive deep into the world of CSS and JavaScript animations.
- Crafting interactive elements that bring concepts to life.
Making a responsive blog preview card, especially for small screensSolution: Studied blog posts and tutorials to understand responsive design, focusing on font sizes and rem units
CSS Pseudo-classes Challenge:Understanding :active, :hover, and :focus (for tabindex)Solution: Consulted MDN docs to learn about these pseudo-classes
What specific areas of your project would you like help with? CSS Reset- Question: What is the best CSS reset to use and why?
- Goal: Understanding the advantages of different CSS reset options.
- Guidelines for CSS class naming conventions
- Best practices for CSS file structure
- Comparison of popular CSS reset/normalize options
- Tutorials on implementing BEM or other CSS methodologies
Community feedback
- @raulgaliciabPosted 2 months ago
This is a great solution!
The only issue that I noticed is that the desktop measurements are maintained in the mobile version. Looking at the Figma designs you can see that the mobile version is slightly narrow.
0@coding-vasuPosted 2 months ago@raulgaliciab Thanks for the feedback.
I have handled the mobile version. Please check my GitHub code base. You can see that I have used the following CSS:
@media screen and (max-width: 28.5rem) { /* styles for screens smaller than 28.5rem */ :root { --base-font-size: 12px; } }
This code decreases the base font size from 16px to 12px. Since I am using rem for spacing and sizing, the whole website size adjusts for the mobile version. I request you to review the solution once. I have also attached a
gif
to showcase the changes in the repository.Thank you
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