Skip to content

Solution to a Order Summary Component challenge: creating a similar webpage as the design preview provided

Notifications You must be signed in to change notification settings

anoshaahmed/fem02-order-summary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Order summary card solution

This is a solution to the Order summary card challenge on Frontend Mentor

Table of contents

Overview

The challenge

Users should be able to:

  • See hover states for interactive elements

Screenshots

  • Preview of my solution on a desktop screen Desktop
  • Preview of my solution on a mobile screen Mobile

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid

What I learned

I could not get the background picture to stay in its place. And then I learned of the "background-size" property

body {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 16px;
    background-image: url(images/pattern-background-desktop.svg);
    background-color: var(--pale-blue);
    background-repeat: no-repeat;
    background-size: contain; !!!!!!!!!!!!!!!!!!
}

Continued development

I tried being better than my last project on organizing my HTML, however I aim to perfect it. I want to start integrating a better template layout, such as

<body>
  <header></header>
  <nav></nav>
  <main>
    <section></section>
    <article></article>
    <aside></aside>
  </main>
  <footer></footer>
</body>

Useful resources

Author