@RayaneBengaoui
Posted
Hello Rhona,
Congrats for completing this challenge ! 🙂
I'd like to suggest :
-
Add
border: solid 1px transparent
to your anchor tag to fix the "resizing" effect on your container during hover. You can read an article on how the box model works in CSS with content, padding, border and margin to understand better why it behaves like this. -
You have a vertical because your
.container
is declared with a margin of 2rem while it is already 100% of the height. So you should remove this margin, but then, there is still a little bit of scrolling. It's because there is a default margin to elements in CSS, thus, yourbody
has a default margin of 8px. To fix this, just addmargin: 0
to your body and the Y scroll should be gone.
Overall, well done for the challenge and happy coding ! 😃
@rhonall
Posted
@RayaneBengaoui Thanks you so much for you help, I have fixed the error and the scroll bar is gone. And also thanks for picking up the resizing effect during hover, I didn't even noticed it before :)