# My code works fine in browsers but not CodePen?

**URL:** <https://forum.freecodecamp.org/t/my-code-works-fine-in-browsers-but-not-codepen/125416>\
**Category:** General\
**Tags:** codepen, bootstrap, html\
**Created:** [June 9, 2017, 3:32pm UTC](https://forum.freecodecamp.org/t/my-code-works-fine-in-browsers-but-not-codepen/125416 "2017-06-09T15:32:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![catley85](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/catley85/32/56838_2.png) [@catley85](https://forum.freecodecamp.org/u/catley85)\
**Post date:** [June 9, 2017, 3:32pm UTC](https://forum.freecodecamp.org/t/my-code-works-fine-in-browsers-but-not-codepen/125416/1 "2017-06-09T15:32:49Z")

</div>

Hi everyone, just completed the Tribute challenge using Atom text editor with links to Bootstrap included in index.html. If I open the file in Chrome or Safari it works perfectly but when I move the code over to CodePen the styling and layout is totally wrong. I made sure to remove unnecessary code and add the external Bootstrap CSS too.

Any help is appreciated.

My code: [https://drive.google.com/open?id=0B2D2FwHu36e8S2cwY3VNcEVLVWM](https://drive.google.com/open?id=0B2D2FwHu36e8S2cwY3VNcEVLVWM)

CodePen: [https://codepen.io/catley85/pen/MoaPpo?editors=1000](https://codepen.io/catley85/pen/MoaPpo?editors=1000)

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [June 9, 2017, 3:35pm UTC](https://forum.freecodecamp.org/t/my-code-works-fine-in-browsers-but-not-codepen/125416/2 "2017-06-09T15:35:48Z")

</div>

You’re using the wrong version of Bootstrap. Replace the one in the CSS settings with this:  
`https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css`

---

<div class="post-metadata">

**Author:** ![catley85](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/catley85/32/56838_2.png) [@catley85](https://forum.freecodecamp.org/u/catley85)\
**Post date:** [June 9, 2017, 3:37pm UTC](https://forum.freecodecamp.org/t/my-code-works-fine-in-browsers-but-not-codepen/125416/3 "2017-06-09T15:37:36Z")

</div>

Just like that, problem solved! Thanks so much! 👍

---

<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 17, 2021, 8:56pm UTC](https://forum.freecodecamp.org/t/my-code-works-fine-in-browsers-but-not-codepen/125416/4 "2021-01-17T20:56:16Z")

</div>

Closed on January 17, 2021, 8:56pm UTC


