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 trialNIV BARCHECHET
2,937 Pointscant change icone size
icon size wont change html- <a href ="https://www.facebook.com/niv.barsheshet" > <img src="img/facebook-wrap.png" alt="cool image" calss="abcd"> </a> css- .abcd { width:20; height: 20px; margin: 0 5px; }
Joseph Dalton
12,489 PointsHey Niv,
Remember, the default display
property of both an <a>
and <img>
is inline. But, inline elements don't accept width and height properties. You should be able to just add the property display: inline-block;
to your .abcd rules, then you should be able to adjust the height and width.
5 Answers
Joseph Dalton
12,489 Points(oops, I guess this should go in the 'answer' field...)
Hey Niv,
Remember, the default display property of both an <a> and <img> is inline. But, inline elements don't accept width and height properties. You should be able to just add the property display: inline-block; to your .abcd rules, then you should be able to adjust the height and width.
Marc Sanchez
20,039 Points'class' is spelled wrong.
NIV BARCHECHET
2,937 Pointsthnx alot for you help
NIV BARCHECHET
2,937 Pointshttp://port-80-f8yorgwiwq.treehouse-app.com/index.html now its showing a weird white line under my footer ?
Marc Sanchez
20,039 PointsLink to your Space isn't working.
Rafael silva
23,877 Pointsif you to write with some mistakes it will always happens, so on class="" and not calss="abcd"
Roberto Correale
1,539 PointsRoberto Correale
1,539 PointsMaybe the problem is a grammar mistake, you've wrote "calss" instead of "class". If is not that the problem you need to provide us also the image.