# Student having trouble with Classes

**URL:** <https://forum.code.org/t/student-having-trouble-with-classes/11032>\
**Category:** CS Discoveries\
**Created:** [October 13, 2017, 11:53am UTC](https://forum.code.org/t/student-having-trouble-with-classes/11032 "2017-10-13T11:53:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hensleyn](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@hensleyn](https://forum.code.org/u/hensleyn)\
**Post date:** [October 13, 2017, 11:53am UTC](https://forum.code.org/t/student-having-trouble-with-classes/11032/1 "2017-10-13T11:53:34Z")

</div>

One of my students is trying to create a class to make the CC image small on his web site. He wants it to be a little icon at the bottom. He copied code from a site to add to his page. He is now trying to add a class to it to make it smaller. It will not work. I attached his css sheet and html code along with a picture of the image size. ![](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/8/8b26f0e45aadbd6002d0ce7a3a60ca03231b527b.JPG) ![](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/b/b3431f36b17209b6053e7f1c7f23d3663ea18570.JPG) ![](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/a/a2ab13767acced147be3ec6dfd67662b13c8fe70.JPG)

---

<div class="post-metadata">

**Author:** ![advinculama](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@advinculama](https://forum.code.org/u/advinculama)\
**Post date:** [October 14, 2017, 9:23pm UTC](https://forum.code.org/t/student-having-trouble-with-classes/11032/2 "2017-10-14T21:23:57Z")

</div>

Try the class inside the img tag. I assume your applying it there instead of the link.

---

<div class="post-metadata">

**Author:** ![bradleywellsashley](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bradleywellsashley/32/522_2.png) [@bradleywellsashley](https://forum.code.org/u/bradleywellsashley)\
**Post date:** [October 15, 2017, 7:07pm UTC](https://forum.code.org/t/student-having-trouble-with-classes/11032/3 "2017-10-15T19:07:14Z")

</div>

Nicole,

I agree with Marx below/above depending on where this post ends up, the a tag is for hyperlinks (anchor) and the img tag is for images. Another issue that might come up is the pixel width in the .credit class - it’s 500px width so the image will be short and very stout.

I love how students are finding these things to add to their websites and it sounds like you are playing a great “lead learner” to seek out answers to questions you don’t know!

Brad
