# Images have Gray/Black Bars

**URL:** <https://forum.ghost.org/t/images-have-gray-black-bars/12043>\
**Category:** Developer help\
**Created:** [February 16, 2020, 5:53pm UTC](https://forum.ghost.org/t/images-have-gray-black-bars/12043 "2020-02-16T17:53:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kairos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kairos/32/4752_2.png) [@kairos](https://forum.ghost.org/u/kairos)\
**Post date:** [February 16, 2020, 5:53pm UTC](https://forum.ghost.org/t/images-have-gray-black-bars/12043/1 "2020-02-16T17:53:11Z")

</div>

Hello.

Each post-image that shows up under title is appropriately sized but has grey bars extending beyond to the left and right.

I understand this is some CSS issue, but what parameters are exactly responsible for this?

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [February 16, 2020, 5:55pm UTC](https://forum.ghost.org/t/images-have-gray-black-bars/12043/2 "2020-02-16T17:55:12Z")

</div>

@kairos it would help to share which theme you are using and some screenshots to demonstrate what it is that you are referencing

---

<div class="post-metadata">

**Author:** ![kairos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kairos/32/4752_2.png) [@kairos](https://forum.ghost.org/u/kairos)\
**Post date:** [February 16, 2020, 6:33pm UTC](https://forum.ghost.org/t/images-have-gray-black-bars/12043/3 "2020-02-16T18:33:23Z")

</div>

Theme: Casper Latest Rendition

And screenshot attached.

 ![Capture](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/2/2c1d2ddc6a8dc59940e45b0e78b655c5c9d8037f.png)

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [February 17, 2020, 9:46am UTC](https://forum.ghost.org/t/images-have-gray-black-bars/12043/4 "2020-02-17T09:46:07Z")

</div>

Hey @kairos, this is because the image you’re uploading isn’t wide enough for the feature image space. Are you able to upload something wider to fit the space? 🙂

---

<div class="post-metadata">

**Author:** ![kairos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kairos/32/4752_2.png) [@kairos](https://forum.ghost.org/u/kairos)\
**Post date:** [February 17, 2020, 6:46pm UTC](https://forum.ghost.org/t/images-have-gray-black-bars/12043/5 "2020-02-17T18:46:43Z")

</div>

@DavidDarnes I have tired varied-sized images, all of them, even the largest ones have those grey bars.

What CSS is responsible for featured image size?

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [February 17, 2020, 8:15pm UTC](https://forum.ghost.org/t/images-have-gray-black-bars/12043/6 "2020-02-17T20:15:05Z")

</div>

That seems odd. You can force the image to be full width in Casper using something like this:

```css
.post-full-image img {
  width: 100%;
  height: auto;
}

```

---

<div class="post-metadata">

**Author:** ![kairos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kairos/32/4752_2.png) [@kairos](https://forum.ghost.org/u/kairos)\
**Post date:** [February 17, 2020, 8:17pm UTC](https://forum.ghost.org/t/images-have-gray-black-bars/12043/7 "2020-02-17T20:17:46Z")

</div>

I’ll try it out - thanks.

---

<div class="post-metadata">

**Author:** ![denvergeeks](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/denvergeeks/32/7401_2.png) [@denvergeeks](https://forum.ghost.org/u/denvergeeks)\
**Post date:** [February 17, 2020, 8:28pm UTC](https://forum.ghost.org/t/images-have-gray-black-bars/12043/8 "2020-02-17T20:28:26Z")

</div>

@kairos you can try pasting this into your site’s **Settings** \>\> **Code Injection** \>\> **Site Header**. . .

```
.post-full-image img {
max-width: 1040px;
width: 100%;
height: auto;
}

```

. . . like this:

 ![Screenshot 2020-02-17 at 1.21.49 PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/b6680e93f81053d9ca6e6a24bcba14cbbfdd2ae3.png)

. . . and then try different values for the width and max-width

```
max-width: 1040px;
width: 100%;

```

You can also use tools like this in your browser to try different CSS:

> **[Chrome DevTools - Chrome Developers](https://developer.chrome.com/docs/devtools/)**
>
> Chrome DevTools is a set of web developer tools built directly into the Google Chrome browser.

. . . like this . . .

 ![Screenshot 2020-02-17 at 1.15.20 PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/5/57fab00f23439d16d2bd28eadf35a237b47f0da7.png)

---

<div class="post-metadata">

**Author:** ![kairos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kairos/32/4752_2.png) [@kairos](https://forum.ghost.org/u/kairos)\
**Post date:** [February 17, 2020, 8:30pm UTC](https://forum.ghost.org/t/images-have-gray-black-bars/12043/9 "2020-02-17T20:30:57Z")

</div>

Usually, I just F12 and change the values there, but for some reason I was unable to find the appropriate parameters.

Both answers are more than sufficient to my goal. Thank you, mates.

Cheers.
