# Portfolio Issue

**URL:** <https://forum.freecodecamp.org/t/portfolio-issue/89843>\
**Category:** General\
**Created:** [February 21, 2017, 8:32pm UTC](https://forum.freecodecamp.org/t/portfolio-issue/89843 "2017-02-21T20:32:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasondangelo4life](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jasondangelo4life](https://forum.freecodecamp.org/u/jasondangelo4life)\
**Post date:** [February 21, 2017, 8:32pm UTC](https://forum.freecodecamp.org/t/portfolio-issue/89843/1 "2017-02-21T20:32:19Z")

</div>

Hello everyone,  
I am having issues with my portfolio.  
When i code it in codepen the background image is cropped but when I copy that same code to my live site everything is fine. Is theresomething in codepen that would cause this, if so how do I work around it?

Live Site: [http://jasondangelo.com/](http://jasondangelo.com/)

Codepen: [http://codepen.io/jasondangelo4life/full/mRZWVp/](http://codepen.io/jasondangelo4life/full/mRZWVp/)

Thank you

---

<div class="post-metadata">

**Author:** ![jsrco](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jsrco/32/27866_2.png) [@jsrco](https://forum.freecodecamp.org/u/jsrco)\
**Post date:** [February 21, 2017, 9:02pm UTC](https://forum.freecodecamp.org/t/portfolio-issue/89843/2 "2017-02-21T21:02:42Z")

</div>

I put everything in body tags. Then made a css for the body:

```
body {
    background: url("http://jasondangelo.com/img/Portfolio1.jpg")
 no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

```

This got it to work for me. I find that codepen acts weird if I don’t automatically link all the files.  
Example of older portfolio: [Portfolio](http://codepen.io/jsrco/pen/GNGpmR)

---

<div class="post-metadata">

**Author:** ![mikeNIN](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mikenin/32/126753_2.png) [@mikeNIN](https://forum.freecodecamp.org/u/mikeNIN)\
**Post date:** [February 21, 2017, 9:05pm UTC](https://forum.freecodecamp.org/t/portfolio-issue/89843/3 "2017-02-21T21:05:59Z")

</div>

change .intro width size from 100% to 100vh

---

<div class="post-metadata">

**Author:** ![MasterBuilder](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/masterbuilder/32/107939_2.png) [@MasterBuilder](https://forum.freecodecamp.org/u/MasterBuilder)\
**Post date:** [February 21, 2017, 9:53pm UTC](https://forum.freecodecamp.org/t/portfolio-issue/89843/4 "2017-02-21T21:53:48Z")

</div>

Hey Jason,

I wouldn’t worry about it too much as it seems to be a quirk in CodePen.

I would point out that when using percentages in CSS, the percentage is based off of the parent container. Because you have no container outside of your intro div, it is basing its width: 100% height 100% off of the window.

You’ll notice that if you readjust the height of your browser window and hit refresh, your “Hello world!” will always be just out of view. That’s because whatever the height is, your “intro” div is taking up 100% of it.

I would put a height other than 100% on that div, so your content doesn’t get pushed so far down.

---

<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, 2:48pm UTC](https://forum.freecodecamp.org/t/portfolio-issue/89843/5 "2021-01-16T14:48:11Z")

</div>

Closed on January 16, 2021, 2:48pm UTC


