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 Styling Web Pages and Navigation Polish the Navigation and Footer

cant 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; }

Roberto Correale
Roberto Correale
1,539 Points

Maybe 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.

Joseph Dalton
Joseph Dalton
12,489 Points

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.

5 Answers

Joseph Dalton
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.

'class' is spelled wrong.

thnx alot for you help

http://port-80-f8yorgwiwq.treehouse-app.com/index.html now its showing a weird white line under my footer ?

Link to your Space isn't working.

if you to write with some mistakes it will always happens, so on class="" and not calss="abcd"