@correlucas
Posted
👾Hello Animesh Anand, Congratulations on completing this challenge!
To improve your box-shadow, you’ve to have in mind two things that make a good shadow, blur
and low opacity
for smooth shadows. To improve your current shadow, decrease the opacity
and increase the blur
, try this value instead: box-shadow: 12px 7px 20px 6px rgb(57 75 84 / 8%);
If you’re not familiar to box-shadow you can use this site to create the shadow design and then just drop the code into the CSS: https://html-css-js.com/css/generator/box-shadow/
The approach you've used to center this card vertically is not the best way, because using margins you don't have much control over the component when it scales. My suggestion is that you do this alignment with flexbox
using the body as a reference for the container.
The first thing you need to do is to remove the margins used to align it, then apply min-height: 100vh
to make the body height size becomes 100% of the screen height, this way you make sure that whatever the situation the child element (the container) align the body with display: flex
and align-items: center
/ justify-items: center
.
}
body {
min-height: 100vh;
box-sizing: border-box;
overflow-y: hidden;
background-color: var(--Light-gray);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
✌️ I hope this helps you and happy coding!
Marked as helpful