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.
Recreate the order checkout from and make it as close as possible to the original.
Users should be able to:
- See hover states for interactive elements
My process to solve this challenge was to break it down into small pieces. Starting with the html markup. I then continued to the CSS styling and worked from top to bottom. It's a little easier for me to focus on one thing at a time instead of trying to style everything all at once.
- Semantic HTML5 markup
- CSS
- Flexbox
- Mobile-first workflow
in this challenge I learn more about how to use flexbox. I also use the position property in CSS as well to center the form on the page. My biggest take away from this challenge is the use of the transform property.
.main-container {
display: flex;
flex-direction: column;
border: 1px solid hsl(225, 100%, 94%);
background-color: white;
width: 400px;
height: auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 20px;
}
If you want more help with writing markdown, we'd recommend checking out The Markdown Guide to learn more.
- Website - Corey Rodney
- Frontend Mentor - @dellannie
- Twitter - @yourusername