Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Basics (2014) Basic Layout Basic Layout Review

Paul Shryock
Paul Shryock
6,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.

5 Answers

Thank you for correction, we will submit to help@teamtreehouse.com

Guil Hernandez
Guil Hernandez
Treehouse Teacher

Hey Grant Bates,

I cover that question & answer -- almost word-for-word -- at the 00:47 mark of this video. :)

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:

background-position: 20px;

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.

Grant Bates
Grant Bates
1,915 Points

I put the answer "vertical position" to this question and received a big ol WRONG. I don't know why.

The answer to that question is 'center'.

Justin Bigos
Justin Bigos
3,828 Points

Make sure to write center not centered. Errrgg

This question is back to asking about background-position.

Guil Hernandez
Guil Hernandez
Treehouse Teacher

Hi David Laycock,

Just checked. One of the questions is supposed to about background-repeat values. :)

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.