I got stuck on the vertical alignment. In this challenge i used margin property to space the div element from top and bottom. I want to know is there any other more good way to achieve that. Second thing i got stuck on was the text, I want to know if that is perfect?
Destany
@destanyrAll comments
- @Tejas-087Submitted over 1 year ago@destanyrPosted over 1 year ago
Hello!
First of all great job completing this challenge! Your design looks fairly spot on so congrats on that.
This is my first time offering advice here, so hopefully I can give you information you can find useful.
The colors are a bit off from what I see. In the style guide provided they give you all the correct colors to use for all the text. That should resolve that issue.
As for the positioning, I actually did the same thing when trying to center the component the first time. There's several ways to get it centered, but here is an example of code that I use to get everything centered directly in the middle in your CSS. My method may be a bit off, but it is successful for me. Other people use CSS grid, but I find I am more comfortable with Flexbox. The dot below is actually an asterisk, but for some reason is only appearing as a bullet point.
-
{
margin: 0;
padding: 0; }
body {
min-height: 100vh; display: flex; justify-content: center; align-items: center;
}
Try putting an image in the html, and putting this code in the CSS and see if it resolves your issue and is positioned how you need.
Hope this helps! Happy coding!
0 -