Welcome to the Treehouse Community
Looking to learn something new?
Paul Shryock6,291 Points
On Stage 5, Basic Layout, Question 1 of 8, the question should say: "background-repeat" instead of background-position.
Just thought someone might want to fix that typo, unless I'm crazy and wrong, but I'm pretty sure that's a typo.
Perhaps I'm misunderstanding the question or content. The question in the quiz states: If we specify one background-position value, the browser will assume the second value is ____________. My understanding is that the background-position is expecting two values. One for the horizontal position and one for the vertical position. My first answer to this question is that the answer should be '0'. Testing this with the project in that section if I include:
It moves the image 20px to the right and the vertical spacing stays at zero.
I re-watched the video it directed to and it didn't stand out to me. I haven't seen any other posts besides this one asking about this quiz question so I'm probably missing something obvious.
This question is back to asking about background-position.
Turns out my image was too large for me to notice. After constraining it with background-size to be much smaller than its parent element I see it centering the image on the vertical axis when I only give it a background-position along the x-axis. Thanks for the responses.