Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Adding Pages to a Website Add Iconography

Darren Handyside
PLUS
Darren Handyside
Courses Plus Student 1,357 Points

background-repeat and value no-repeat not working

This one has got me stuck?

I have the syntax right I think in my main CSS

.contact-info a {

display: block; min-height: 20px background-repeat: no-repeat; background-size: 20px 20px; padding: 0 0 0 30px; margin: 0 0 10px; }

On my workspace the property and value is stating an error "background-repeat: no-repeat;"

If I put "background-repeat etc.." below background size then the value works (no-repeat), but then background-size fails because icons appear oversized on the left.

Is it some order formation I am missing?

3 Answers

From the code that you have posted. You are missing a ; after min-height: 20px

Yes I agree with Cody Coars, your missing the ; after min-height. Otherwise the code looks fine.

A TIP:

When you pos the code HTML or CSS you should allways write it like that

<p>Look here , don't use the email symbol and spaces</p>

@``` HTML

<!-- paste your code here -->

@```

For HTML use HTML for CSS use CSS . This will help you when you will have a bigger issue and more code. it would be easier for us to figure it out because as you see the code get messi and hard to read and it will take a lot of time to put it nice and nit .

Darren Handyside
PLUS
Darren Handyside
Courses Plus Student 1,357 Points

Thanks Cody and Aurelian :)

After posting my question, I figured it out via doing the code challenge.

Sorry Aurelian still trying to workout the markdown option, not fully getting it but eventfully my brain will get it :)

don't worry , everyone were like that at first , or most people :D you have on right a ' Tip for asking questions " . hope it helps. Belive me it will benefit you later one.