Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

single Price Grid Component

@Arah1289

Desktop design screenshot for the Single price grid component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@krushnasinnarkar

Posted

Hi @Arah1289,

Your solution is great and well-structured! However, here are some key points and suggestions:

Add Background Color to Body

  • Apply the following background color to the body:
    body {
        background-color: hsl(204, 43%, 93%);
    }
    

Create a Flexible Section

  • Add a section immediately after the <body> tag.
  • Make the section a flexible container that aligns items inside it both vertically and horizontally at the center using the following CSS:
    .flex-container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    
  • Place your container inside this section.

Add Box Shadow to Container

  • Apply a box shadow to the .container element with the following CSS:
    .container {
        box-shadow: 0px 0px 14px 1px #00000024;
    }
    

Here is the complete HTML and CSS with the changes applied:

HTML:

<!DOCTYPE html>
<html lang="en">
<head>
    <!-- Your content goes here -->
</head>
<body>
    <section class="flex-container">
        <div class="container">
            <!-- Your content goes here -->
        </div>
    </section>
</body>
</html>

CSS:

/* Set background color for the body */
body {
    background-color: hsl(204, 43%, 93%);
}

/* Create a flexible container section */
.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Style the container with box shadow */
.container {
    box-shadow: 0px 0px 14px 1px #00000024;
}

These steps and examples should help you implement the desired changes effectively.

Feel free to reach out if you have more questions or need further assistance.

I hope you find my feedback valuable, and I would appreciate it greatly if you could mark my comment as helpful if it was!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord