# Bootstrap not working with codepen?

**URL:** <https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970>\
**Category:** General\
**Created:** [April 18, 2017, 1:14am UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970 "2017-04-18T01:14:24Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![travis](https://avatars.discourse-cdn.com/v4/letter/t/bbce88/32.png) [@travis](https://forum.freecodecamp.org/u/travis)\
**Post date:** [April 18, 2017, 1:14am UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/1 "2017-04-18T01:14:24Z")

</div>

I was working on the portfolio project and I just couldn’t get the navbar to display properly using bootstrap. After a couple hours of trial and error I finally figured out codepen was loading version 4 of bootstrap and the navbar function apparently relies on version 3. If you’re having the same issue try following the instructions in this video: [https://youtu.be/fHKuCzYFTPY](https://youtu.be/fHKuCzYFTPY)

---

<div class="post-metadata">

**Author:** ![Emmanueladegor](https://avatars.discourse-cdn.com/v4/letter/e/3bc359/32.png) [@Emmanueladegor](https://forum.freecodecamp.org/u/Emmanueladegor)\
**Post date:** [April 18, 2017, 1:17am UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/2 "2017-04-18T01:17:22Z")

</div>

Yes @travis i had similar issue using bootstrap class=“text-center” inside a Div of class=“row” it wasn’t centralizing my text due to bootstrap 4 so i used bootstrap 3.3.5 instead.

---

<div class="post-metadata">

**Author:** ![cmaster3](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/cmaster3/32/47109_2.png) [@cmaster3](https://forum.freecodecamp.org/u/cmaster3)\
**Post date:** [April 18, 2017, 1:25am UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/3 "2017-04-18T01:25:21Z")

</div>

I was not having these issues; however it seems that codepen is currently down or overloaded. I was trying to finish up the tribute page and it crashed.

---

<div class="post-metadata">

**Author:** ![Azbo400](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/azbo400/32/30999_2.png) [@Azbo400](https://forum.freecodecamp.org/u/Azbo400)\
**Post date:** [April 18, 2017, 3:41am UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/4 "2017-04-18T03:41:15Z")

</div>

Yeah haha… Codepen making Quick Add add Bootstrap 4 really confused and messed people up, however, a lot of people managed to fix it after coming to FCC chat rooms and getting help, kind of annoying to have codepen add 4 instead of 3.

---

<div class="post-metadata">

**Author:** ![katieswisher](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@katieswisher](https://forum.freecodecamp.org/u/katieswisher)\
**Post date:** [May 8, 2017, 12:40am UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/5 "2017-05-08T00:40:39Z")

</div>

Wow! What a huge help. I did this for the current local weather and completely forgot for random wiki search. Seems like there might be a better way to handle this on FreeCodeCamp’s end. Then again, they’re reinforcing read-search-ask I guess. 😉

---

<div class="post-metadata">

**Author:** ![valeriusturcanus](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/valeriusturcanus/32/64993_2.png) [@valeriusturcanus](https://forum.freecodecamp.org/u/valeriusturcanus)\
**Post date:** [May 19, 2017, 5:52pm UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/6 "2017-05-19T17:52:44Z")

</div>

Bootstrap 3 worked in codePen for me only when I copied entire header from my local html file into Codepen html setings =\> Stuff for \<`head`\>. Default css external links it did not work for unknown reasons.

---

<div class="post-metadata">

**Author:** ![sypher85](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sypher85/32/61632_2.png) [@sypher85](https://forum.freecodecamp.org/u/sypher85)\
**Post date:** [May 20, 2017, 11:35am UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/7 "2017-05-20T11:35:44Z")

</div>

Why is Codepen using bootstrap 4 when 3 is used more?

---

<div class="post-metadata">

**Author:** ![Selo](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@Selo](https://forum.freecodecamp.org/u/Selo)\
**Post date:** [May 22, 2017, 10:25am UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/8 "2017-05-22T10:25:44Z")

</div>

Well, I think Codepen is using Bootstrap v4 because that’s where the world is going to.

If you want to load Bootstrap 3 in Codepen it’s easy to do. Just go to **Pen settings** / **CSS** and **Add External CSS**  
add the following codes in this order:  
first field: [https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css](https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css)  
second field: [https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css](https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css)

And because Bootstrap relies on jQuery you need to load it too. Go to **Pen Settings** / **JavaScript** and **Add External JavaScript**  
add the following link to the field:  
[https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js](https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js)

This should do the trick. At least it did for me 🙂

---

<div class="post-metadata">

**Author:** ![AndreeaForce](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/andreeaforce/32/56086_2.png) [@AndreeaForce](https://forum.freecodecamp.org/u/AndreeaForce)\
**Post date:** [June 5, 2017, 7:03am UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/9 "2017-06-05T07:03:39Z")

</div>

Saved me! Thank you!

---

<div class="post-metadata">

**Author:** ![shanemarcotte](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shanemarcotte/32/55969_2.png) [@shanemarcotte](https://forum.freecodecamp.org/u/shanemarcotte)\
**Post date:** [June 9, 2017, 3:38am UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/10 "2017-06-09T03:38:49Z")

</div>

2 hours of frustration with my column sizes not working  
"I know im doing this right WTF?!?!??!?!"  
and then a google led me here…  
Thanks guys “read-SEARCH-ask” hahaha

---

<div class="post-metadata">

**Author:** ![Servant123](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@Servant123](https://forum.freecodecamp.org/u/Servant123)\
**Post date:** [June 28, 2017, 7:38am UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/11 "2017-06-28T07:38:59Z")

</div>

Awesome. Helped a lot

---

<div class="post-metadata">

**Author:** ![KaraboMaimane](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/karabomaimane/32/78746_2.png) [@KaraboMaimane](https://forum.freecodecamp.org/u/KaraboMaimane)\
**Post date:** [August 12, 2017, 11:35am UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/12 "2017-08-12T11:35:13Z")

</div>

Holy crap! I knew i was doing something wrong. Thanks a lot buddy!!!😀

---

<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, 5:07pm UTC](https://forum.freecodecamp.org/t/bootstrap-not-working-with-codepen/106970/13 "2021-01-16T17:07:45Z")

</div>

Closed on January 16, 2021, 5:07pm UTC


