Hi,
I need an Assessment of A cool-looking box test from the CSS: Building blocks.
Can’t wait to hear your comments.
Hi,
I need an Assessment of A cool-looking box test from the CSS: Building blocks.
Can’t wait to hear your comments.
Congratulations, @umarFaruq!
You don’t need to use two block elements. One is enough.
You could remove the height
of the <div>
. The line-height alone will be enough. Also grid
feels a bit overkill. A simple text-align: center;
works. And the <p>
doesn’t need margin.
I hope that helps.
Michael
Thanks, @mikoMK, I made some changes in the code as you suggested. Please bear a second look and let me know if I am right or not.
Notice how the box shrinks a little bit. Is that okay or not?
Thanks again for these tiny notices. I hope it’ll help me improve my code along the way. Stay safe!
Yup, that looks better