# Fixed post-card size for default casper theme

**URL:** <https://forum.ghost.org/t/fixed-post-card-size-for-default-casper-theme/922>\
**Category:** Themes\
**Created:** [April 16, 2018, 3:42am UTC](https://forum.ghost.org/t/fixed-post-card-size-for-default-casper-theme/922 "2018-04-16T03:42:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![owenlearnstocode](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/owenlearnstocode/32/396_2.png) [@owenlearnstocode](https://forum.ghost.org/u/owenlearnstocode)\
**Post date:** [April 16, 2018, 3:42am UTC](https://forum.ghost.org/t/fixed-post-card-size-for-default-casper-theme/922/1 "2018-04-16T03:42:20Z")

</div>

_First of all, I apologize if this kind of styling help or scripting help is deemed inappropriate for this forum. I will take this down if necessary._

What I would like to achieve is to have a fixed size/style of post-card on the blog front page of the casper theme. It seems that by default, the post-card adjusts its size (or perhaps better described as shape) to fill the page horizontally (See [here](http://xiao.io) for example). Where and how could I modify the theme to have a fixed shape of the post-card. Since it is dynamic, I am guessing it’s part of a JS script. But I am having trouble locating where it is.

Thanks for any help in advance!

---

<div class="post-metadata">

**Author:** ![Aileen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/aileen/32/9846_2.png) [@Aileen](https://forum.ghost.org/u/Aileen)\
**Post date:** [April 16, 2018, 4:21am UTC](https://forum.ghost.org/t/fixed-post-card-size-for-default-casper-theme/922/2 "2018-04-16T04:21:01Z")

</div>

Hey Owen,

No, it’s totally fine to ask questions here. That’s what the forum is for. Many things you’ll find in our documentation, but in your particular case, you’ll have the read the source code of Casper.

The post card grid is not done with JS, but with plain CSS. Here is the base style for the post cards:

> <https://github.com/TryGhost/Casper/blob/main/assets/css/screen.css#L386>

And here you’ll find the code section, that styles every `6n+1` nth post card as the full width card that you fancy:

> <https://github.com/TryGhost/Casper/blob/main/assets/css/screen.css#L572-L616>

---

<div class="post-metadata">

**Author:** ![owenlearnstocode](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/owenlearnstocode/32/396_2.png) [@owenlearnstocode](https://forum.ghost.org/u/owenlearnstocode)\
**Post date:** [April 16, 2018, 6:21am UTC](https://forum.ghost.org/t/fixed-post-card-size-for-default-casper-theme/922/3 "2018-04-16T06:21:29Z")

</div>

Huge thanks! This is extremely helpful. Thanks for such a detailed response 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [April 30, 2018, 6:32am UTC](https://forum.ghost.org/t/fixed-post-card-size-for-default-casper-theme/922/4 "2018-04-30T06:32:00Z")

</div>

Closed on April 30, 2018, 6:32am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
