Skip to content

A responsive 3 column card review component using HTML and CSS

Notifications You must be signed in to change notification settings

ABQ4539/3-column-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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

alt Desktop design)

alt First half of mobile design

Second half of mobile design

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • Responsive Web Design

What I learned

I learnt how to make a web page responsive, adjustable screen sizes for mobile and desktop screens. i learnt how to do this using CSS media query. An example is shown below

First the design for mobile:

.container {
    max-width: 325px;
    margin-top: 50px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

Then the desktop design:

@media (min-width: 786px) {
    .container {
        max-width: 800px;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

Continued development

My focus now will be on CSS grid layout and bootstrap.

Useful resources

  • Pointer Cursor - This helped me for changing the mouse cursor to a pointer for a hover effect.
  • Responsive Web Design - This is an amazing article which helped me finally understand Responsive Web design and Media queries. I'd recommend it to anyone still learning this concept.

Author

About

A responsive 3 column card review component using HTML and CSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published