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 trialDarren Handyside
Courses Plus Student 1,357 Pointsbackground-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
Cody Coats
7,469 PointsFrom the code that you have posted. You are missing a ;
after min-height: 20px
Aurelian Spodarec
7,369 PointsYes 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
Courses Plus Student 1,357 PointsThanks 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 :)
Aurelian Spodarec
7,369 Pointsdon'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.