Skip to content

andreimaier/3-column-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - 3-column preview card component solution

This is a solution to the 3-column preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Screenshot

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • BEM naming convention
  • Flexbox
  • Mobile-first workflow

What I learned

  • to upgrade my CSS reset plate
  • using CSS variables for colors and fonts
  • hiding the main heading of the page using position: absolute, overflow: hidden and negative margin to get it out of the viewport
  • positioning the card vertically using display: flex on the body
  • margin-top: auto will make the last element in a container float to the bottom of its parent (which in turn helps with responsiveness)
  • mix-blend-mode: screen combined with color: black is a nifty way to set color to match the background. used it to set the color of my buttons' text
  • which images need alt text and which should use aria-hidden: true instead
  • used BEM naming convention for the first time and found it useful
  • used flex property for the first time
<h1 class="sr-only">3-column preview card component</h1>
.card__button {
  color: black;
  mix-blend-mode: screen;
}

Continued development

CSS Grid flex property

Useful resources

  • MDN - flex - This helped me make some sense of flex shorthand. I really like how it worked and I will continue trying to make sense of it in the next projects.
  • Markdown Guide - Used this documentation to write this README.

Author

Acknowledgments

Learned a lot from @MelvinAguilar's solution

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published