@Orekihotarou-k
Posted
Hi @HalalisaniSibisi ๐
Great job on completing the challenge. Your solution looks wonderful. I love how you centered the div too.
I have some tips which may be of help to you.
- I suggest wrapping the
container
with amain
tag, or adiv
. This will come in handy when centering the div. For example:
if you wrap the container
with the main tag, centering the div will be something like this:
main {
display: flex;
align-items: center;
justify-content: center;
min-height; 100dvh;
}
You can use the grid or the position methods to center the div too, but I recommend the grid or the flex method because they're easier to work with.
-
I also noticed that you forgot to add a semi-colon(;) after importing the fonts. This is probably affecting the asterix/general element selector. Also, set the
box-sizing: border-box;
in your general selector. With this set, the element's total width and height will include the content, padding, and border, all in one box. This should help with the margin and padding issues -
By implementing the
box-sizing: border-box
, the issue with responsiveness will probably get fixed since you set the containermax-width: 300px
.
Also, I appreciate how you clearly stated areas in which you needed assistance. Thank you very much for doing that. It helps a lotโบ๏ธ
I recently did a video in which I solved this challenge. You can check out my solution here @KimDoesCode. Please subscribe๐ if it helps you out ๐ซ
Good luck on your coding journey ๐โบ๏ธ
Marked as helpful
@HalalisaniSibisi
Posted
@Orekihotarou-k Wow thank you so much, I'm really grateful for your feedback, this has been very informative and awesome advice. Can't thank you enough, I'll check it and I'll definitely subscribe ๐๐๐ฝโจ๏ธ
@Orekihotarou-k
Posted
@HalalisaniSibisi You're most welcome๐ โบ๏ธ