# Resource Tables Custom CSS

**URL:** <https://community.hubspot.com/t/resource-tables-custom-css/88257>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [August 24, 2023, 3:42pm UTC](https://community.hubspot.com/t/resource-tables-custom-css/88257 "2023-08-24T15:42:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DPrynne](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DPrynne](https://community.hubspot.com/u/DPrynne)\
**Post date:** [August 24, 2023, 3:42pm UTC](https://community.hubspot.com/t/resource-tables-custom-css/88257/1 "2023-08-24T15:42:33Z")

</div>

Hi All,

We have a resource table (Hub DB table) displaying case studies on this page: [Boston PR Agency Case Studies & Success Stories](https://www.metiscomm.com/work)

Trying to figure out the best approach for making the card containing each of the case studies smaller on desktop. A method for how to have 4 featured on one line would be great and then a method for how to make them smaller if this isn’t enough would also be very useful.

More experienced with WordPress so simple explanations are preferred!

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [August 24, 2023, 9:59pm UTC](https://community.hubspot.com/t/resource-tables-custom-css/88257/2 "2023-08-24T21:59:08Z")

</div>

Hi @DPrynne

You can add some CSS to wrangle the cards so that 4 appear on a line:

```lia-code-sample
<style>
@media screen and (min-width: 1025px) {
 .resource__item {
 width: 22% !important;
 }
}
</style>

```

The minimum width is 1025px (assuming iPads works at 1024px in landscape) but you can play with the min-width.

And the width of the resources item is 22% allowing 4% gutters, again you can play with that too.

To add this code to the Page go to to your page **Marketing** (top menu) \> **Pages** (sub menu) \> edit you page. Then go to **File** (top menu) \> **Page Settings** (sub menu) \> **Advanced** (bottom left). Paste in the CSS with the Style tags exactly as above.

And here’s [how to add CSS to you main CSS file](https://knowledge.hubspot.com/design-manager/create-edit-and-attach-css-files-to-style-your-site) (so it works anywhere on your site).

**Important** : the main.css doesn’t need Style Tags, only use the Style Tags if you add the CSS to a single page.

Have fun

Mike

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of [Webalite](https://www.webalite.com?utm_campaign=community-forum&utm_source=community&utm_content=signature) a HubSpot Partner Agency based in Wellington, New Zealand and the founder of **Portal-iQ** the world’s first automated [HubSpot Portal Audit](https://portal-iq.com?utm_campaign=community-forum&utm_source=community-forum&utm_content=signature) that helps you work smarter with HubSpot.

---

<div class="post-metadata">

**Author:** ![DPrynne](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DPrynne](https://community.hubspot.com/u/DPrynne)\
**Post date:** [August 25, 2023, 7:42pm UTC](https://community.hubspot.com/t/resource-tables-custom-css/88257/3 "2023-08-25T19:42:45Z")

</div>

Worked great [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) thanks very much!
