This is a solution to the Order summary 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 states for interactive elements
- Solution URL: Add solution URL here
- Live Site URL: Add live site URL here
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
Learned laying out in flexbox , which is far better tha using floats in old days.
.container-plan {
align-items: center;
align-self: center;
background-color: var(--color-very-pale-blue);
border-radius: 10px;
display: flex;
justify-content: center;
margin-bottom: 20px;
padding: 0 50px;
width: 250px;
}
I would like to use flex and grid to laying out more components in future. I felt the align keywords for flex and gris are pretty confusing and may need to get a hang of them.
- Example resource 1 - This article helped me in identifying solution for making the card in centre irrespective of all screen sizes.
- [Lord Jake]
- Frontend Mentor - @yourusername