This is a solution to the Blog preview card challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Note: Delete this note and update the table of contents based on what sections you keep.
Users should be able to:
- See hover and focus states for all interactive elements on the page
- Solution URL: github.com/RayyanNafees/fm-lvl-3
- Live Site URL: rayyannafees.github.io/fm-lvl-3
- Semantic HTML5 markup
- CSS box-shadow
I learnt that it quickly becomes complex to handle all the spacing and font size values as css grows big
So in keep things consistent, we should predefine them in css variables in the theme
:root {
/* Spacing */
--space-xxs: 0.5rem;
--space-xs: 1rem;
--space-sm: 1.5rem;
--space-md: 2rem;
--space-lg: 3rem;
--space-xl: 4rem;
--space-xxl: 5rem;
/* Radius */
--border-radius: 0.5rem;
}
I also learnt the importance of devtools when u get suck in identifying spaces, paddings and margins
I would like to continue development in handling the spacing and using them with css vars effectively
- Website - rayyannafees.github.io
- Frontend Mentor - @RayyanNafees
- Twitter - @NafeesRayyan