Skip to content

kevinozyx/3-column-preview-card-component-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 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

web version hovered

web version unhovered

mobile version

Links

My process

  • Learn about CSS Flexbox
  • Start from HTML and group the elements into their respective classes
  • Start styling them using CSS based on the specification
  • Implement CSS Flexbox to simplify the box positioning
  • Experiment with the width for optimum display based on the resolution provided in the specification
  • Ensuring that the width of the two flexbox items are more than the specified resolution on mobile view so the box will automatically be stacked vertically
  • Creating the button using a CSS Button Creator website (link provided below)

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS button creator

What I learned

How to use basic CSS flexbox, first exposure to real-life project.

Continued development

  • How to master the use of flex container's width and its flex items width properties (static vs dynamic use)
  • Creating variables to change one variable instead of multiple variables manually
  • Alternative for IDs
  • Streamlining or concising the code to avoid unnecessary codes

Useful resources

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published