# Help with Add Borders Around your Elements project

**URL:** <https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912>\
**Category:** General\
**Created:** [September 4, 2016, 12:04pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912 "2016-09-04T12:04:38Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![markfrewin](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/markfrewin/32/16080_2.png) [@markfrewin](https://forum.freecodecamp.org/u/markfrewin)\
**Post date:** [September 4, 2016, 12:04pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/1 "2016-09-04T12:04:38Z")

</div>

hey i have been stuck here for 2 days now, i cant figure out what is wrong with my code and wont let me continue. here is my code…  
[https://photos.google.com/photo/AF1QipMlfcIvVxk1CAjly0DfsJeMXH7IhdUIcv1e96mK](https://photos.google.com/photo/AF1QipMlfcIvVxk1CAjly0DfsJeMXH7IhdUIcv1e96mK)

---

<div class="post-metadata">

**Author:** ![Gogy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gogy/32/165097_2.png) [@Gogy](https://forum.freecodecamp.org/u/Gogy)\
**Post date:** [September 4, 2016, 12:06pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/2 "2016-09-04T12:06:32Z")

</div>

The link is not working, returning error 404

---

<div class="post-metadata">

**Author:** ![markfrewin](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/markfrewin/32/16080_2.png) [@markfrewin](https://forum.freecodecamp.org/u/markfrewin)\
**Post date:** [September 4, 2016, 12:23pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/3 "2016-09-04T12:23:06Z")

</div>

![](https://global.discourse-cdn.com/freecodecamp/original/3X/6/9/69b1f943df9d5981a9cbfb85365d6942e3055928.png)

---

<div class="post-metadata">

**Author:** ![Gogy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gogy/32/165097_2.png) [@Gogy](https://forum.freecodecamp.org/u/Gogy)\
**Post date:** [September 4, 2016, 12:48pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/4 "2016-09-04T12:48:55Z")

</div>

Can you show the screenshot of the lower part of the left sidebar so we can see what’s missing?

From what I see currently, you didn’t apply .green-thick-border class to your cat photo.

---

<div class="post-metadata">

**Author:** ![markfrewin](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/markfrewin/32/16080_2.png) [@markfrewin](https://forum.freecodecamp.org/u/markfrewin)\
**Post date:** [September 4, 2016, 1:06pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/5 "2016-09-04T13:06:29Z")

</div>

here ya go

 ![](https://global.discourse-cdn.com/freecodecamp/original/3X/7/2/72b632ed3a596b4132fd3d9fa52699d4b4762ece.png)

---

<div class="post-metadata">

**Author:** ![Gogy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gogy/32/165097_2.png) [@Gogy](https://forum.freecodecamp.org/u/Gogy)\
**Post date:** [September 4, 2016, 1:17pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/6 "2016-09-04T13:17:17Z")

</div>

Just apply your .thick-green-border to your image. Like this:

`<img class="smaller-image thick-green-border" ...`

---

<div class="post-metadata">

**Author:** ![markfrewin](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/markfrewin/32/16080_2.png) [@markfrewin](https://forum.freecodecamp.org/u/markfrewin)\
**Post date:** [September 4, 2016, 1:42pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/7 "2016-09-04T13:42:18Z")

</div>

ok thanks, i thought i already had that code in there though

---

<div class="post-metadata">

**Author:** ![markfrewin](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/markfrewin/32/16080_2.png) [@markfrewin](https://forum.freecodecamp.org/u/markfrewin)\
**Post date:** [September 4, 2016, 1:45pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/8 "2016-09-04T13:45:09Z")

</div>

woo hoo that worked, ur a genius, much appreciated

---

<div class="post-metadata">

**Author:** ![cmsheridan](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/cmsheridan/32/165094_2.png) [@cmsheridan](https://forum.freecodecamp.org/u/cmsheridan)\
**Post date:** [September 4, 2016, 8:45pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/9 "2016-09-04T20:45:41Z")

</div>

I was having issues with this too. One question I have, is why is the bit where you tell the program you want a thick green border below the block of code where you modify the attributes of the border? It feels like I’m describing it before I’m ordering it…if that makes sense. Shouldn’t I be indicating that I want a thick green border before I say what type of thick green border I like? This set of lessons is very confusing.

---

<div class="post-metadata">

**Author:** ![Gogy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gogy/32/165097_2.png) [@Gogy](https://forum.freecodecamp.org/u/Gogy)\
**Post date:** [September 4, 2016, 8:54pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/10 "2016-09-04T20:54:20Z")

</div>

cmsheridan, I’m not sure that I understood your question well, but in any programming language you have to declare something before you call it. Otherwise the computer won’t know what you are calling. Class name is only the reference the the full description of a class.

---

<div class="post-metadata">

**Author:** ![Dipupo](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@Dipupo](https://forum.freecodecamp.org/u/Dipupo)\
**Post date:** [August 22, 2017, 10:31am UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/11 "2017-08-22T10:31:42Z")

</div>

please how do i give my image a border width of 10px, border style of solid and green border color. i have done all what you said and its still not allowing me to continue

---

<div class="post-metadata">

**Author:** ![aet9rat6](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/aet9rat6/32/69809_2.png) [@aet9rat6](https://forum.freecodecamp.org/u/aet9rat6)\
**Post date:** [October 29, 2017, 4:04pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/12 "2017-10-29T16:04:20Z")

</div>

.thick-green-border  
{  
border-color: green;  
border-width: 10px;  
border-style: solid;  
}

## CatPhotoApp

![A cute orange cat lying on its back.](https://global.discourse-cdn.com/freecodecamp/original/3X/6/1/61a3499c5abb165be990aa0c1abd23342e60c663.jpg)

I was trying to put class= with the thick green border. But this worked for me

---

<div class="post-metadata">

**Author:** ![aet9rat6](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/aet9rat6/32/69809_2.png) [@aet9rat6](https://forum.freecodecamp.org/u/aet9rat6)\
**Post date:** [October 29, 2017, 4:06pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/13 "2017-10-29T16:06:24Z")

</div>

not sure what Im doing yet with replying I guess  
but in your image class="smaller-image thick-green-border "

---

<div class="post-metadata">

**Author:** ![nugrohosetiawan](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nugrohosetiawan/32/159324_2.png) [@nugrohosetiawan](https://forum.freecodecamp.org/u/nugrohosetiawan)\
**Post date:** [February 6, 2018, 4:57am UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/14 "2018-02-06T04:57:38Z")

</div>

To use 2 class in image your code should like this

`<img class="smaller-image thick-green-border"`

---

<div class="post-metadata">

**Author:** ![Debbie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/debbie/32/98742_2.png) [@Debbie](https://forum.freecodecamp.org/u/Debbie)\
**Post date:** [August 29, 2018, 10:13pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/15 "2018-08-29T22:13:49Z")

</div>

I would like to say Thank you for keeping your post up, I’ve been stuck on this challenge for 2 days and I came across your post through a search on Google.  
your post was EXTREMELY helpful.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 1:09pm UTC](https://forum.freecodecamp.org/t/help-with-add-borders-around-your-elements-project/33912/16 "2021-01-16T13:09:31Z")

</div>

Closed on January 16, 2021, 1:09pm UTC


