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
Dylan Riback
1,635 PointsHi all, I'm having trouble getting the twitter icon to appear.
.contact-info li.phone a { background-image: url('../img/phone.png'); }
.contact-info li.mail a { background-image: url('../img/mail.png'); }
.contact-info li.twitter a { background-image: url('../img/twitter.png'); }
I pretty sure the css is correct. I added the twitter image late into the video because I found it at the end of the video lol I was trying to use the twitter wrap img instead.
17 Answers
Colton Ehrman
Courses Plus Student 5,859 PointsOh wow! Finally caught it lol, very small detail, but check your class attribute on the twitter list
Colton Ehrman
Courses Plus Student 5,859 PointsMake sure you twitter.png is inside img folder
Colton Ehrman
Courses Plus Student 5,859 PointsIf you still cant figure it out send me a snapshot of workspace and ill help you
Dylan Riback
1,635 PointsHi Colton, yes it is in the img folder. What should I snapshot to you?
Dylan Riback
1,635 PointsHow does one share their workspace?
Colton Ehrman
Courses Plus Student 5,859 PointsThere should be like a camera icon in your workspace Click it and it should say Take Snapshot
Dylan Riback
1,635 Points/************************************ PAGE CONTACT ************************************/
.contact-info { list-style: none; padding: 0; margin: 0; font-size: 0.9em; }
.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; }
.contact-info li.phone a { background-image: url('../img/phone.png'); }
.contact-info li.mail a { background-image: url('../img/mail.png'); }
.contact-info li.twitter a { background-image: url('../img/twitter.png'); }
Colton Ehrman
Courses Plus Student 5,859 PointsTake a snapshot then post the link you get
Dylan Riback
1,635 PointsDylan Riback
1,635 PointsThanks for the help so far. This is my first time sharing workspaces and asking questions, etc.
Colton Ehrman
Courses Plus Student 5,859 PointsLol no problem... hmmm still not really sure whats wrong, can u send me the url to the preview?
Dylan Riback
1,635 PointsAre you a Treehouse Teacher?
I hope this link works lol
Colton Ehrman
Courses Plus Student 5,859 PointsNo, lol... And not the workspace link, but you know when you click the little eye icon in your workspace it will open a new window with your code rendered? Send me a link to that
Dylan Riback
1,635 PointsColton Ehrman
Courses Plus Student 5,859 PointsLol there you go
Dylan Riback
1,635 PointsAlso since you can see everything, do you know how I can fix the home page's img gallery? The pictures dont make a nice 2 columns, you see?
Colton Ehrman
Courses Plus Student 5,859 PointsLet me check it out
Colton Ehrman
Courses Plus Student 5,859 PointsIf you want two columns then i think youll need to add a css style
#gallery li:nth-child(3n){
clear: both;
}
Dylan Riback
1,635 PointsWow great! What is that under?
Colton Ehrman
Courses Plus Student 5,859 PointsWhat do you mean?
Dylan Riback
1,635 PointsAwesome thanks for the 2 column answer!
Dylan Riback
1,635 Pointswhere is the error for the twitter img?
Colton Ehrman
Courses Plus Student 5,859 PointsIt's in your html, you had
class"twitter"
you forgot the = sign
Dylan Riback
1,635 Points"Oh wow! Finally caught it lol, very small detail, but check your class attribute on the twitter list"
- where is the twitter list you are referencing?
Colton Ehrman
Courses Plus Student 5,859 PointsWhere you put your class twitter at in the html
Dylan Riback
1,635 PointsOH THERE WAS no "=" thank you so much for the help!
Colton Ehrman
Courses Plus Student 5,859 PointsLol no problem :)
Dylan Riback
1,635 Pointslol just saw your mpost from 2 min ago thanks again.