Skip to content

omerome83/3-Column-Preview-Card-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 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

Overview

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • See hover states for interactive elements

Screenshot

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox

What I learned

I created the layout with Flexbox for the first time and while it was a challenge, I am glad I stuck with it. Getting the items to lineup in each column was not easy, but I did my best. I still need to do one step at a time, but it's so exciting learning something new while at the same time trying to implement all of the things on the screen.

I had some additional challenges like the mouseover effect and how it can be implemented.

background-color: initial;
border: 2px solid hsl(0, 0%, 100%, 0.75);
color: hsl(0, 0%, 100%, 0.75);
font-weight: 200;

This presented an additional issue. When moused-over, the page would slightly move downwards so after doing some googling, by adding a transparent border to the button itself, this piece of code fixed the issue.

border: 2px solid transparent;

Continued development

I hope to learn more about Flexbox and improve on my skills. Then eventually tackle CSSGrid. While understanding these layouts have a learning curve, so far, it is way better than doing things the "old" way with floats and clears!

Useful resources

  • Stack Overflow - This page was a great help when noticing that the buttons would render correctly when the page reaches a certain size in width. By changing the tag of the button to display: inline-block was a great fix.
  • W3Schools - Just what I needed to start my path on understanding Flexbox. Once again, the HTML window to try out code was a big help.

Author