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.
Users should be able to:
- See hover states for interactive elements
- Live Site URL: https://zerescas.github.io/order-summary-component/
- Semantic HTML5 markup
- CSS:
- CSS Reset
- Custom properties
- Flexbox
- Grid
The original purpose to use "CSS Reset" is "reduce browser inconsistencies" seems is a little obsolete because a total domination of Google Chrome and death of all browser engines except of Blink(Chrome and Chromium based browsers), Webkit(Safari) and Quantum(Firefox with ~3% of the market share). Now the main purpose is to define global rules to get more logical and predictable behaviour of HTML elements.
border-radius vs. overflow: hidden
It turns out there's few ways to get a rounded container (all sides) and a rounded image (only top corners)

- Setup an image and a container
.image {
/* top-left-corner and top-right-corner only */
border-radius: 2em 2em 0 0;
}
.container {
/* all sides */
border-radius: 2em;
}- Setup a container only
.container {
border-radius: 0 0 0 0;
overflow: hidden;
}A goal - stretch body to full height of a browser window.
- Setup body only.
body {
height: 100vh;
} This works fine only on desktop, but there's trouble on mobile (GUI of a browser overlaps a webpage)

- Setup html and body
html,
body {
height: 100%;
}This still works on desktop and now on mobile we get real estate of a browser's viewport.

- Twitter - https://twitter.com/zerescas
- Telegram - https://t.me/zerescas
- Replace two div in footer content to ::before, ::after
- Make selected-plan-container readable and more responsible below width of 350px.


