Add color backgrounds to Carrd Container columns

Want to color each column in a Carrd container separately? Carrd doesn’t let you do this directly, but you can do it with some custom CSS.

Add color backgrounds to Carrd Container columns
Want to color each column in a Carrd container separately? Carrd doesn’t let you do this directly, but you can do it with some custom CSS.
notion image
📎
Heads up: This will only color the column backgrounds up to the height of their content. It won’t fill the full vertical space unless you force height with extra CSS (not covered here).
⚠️
Requires at least Carrd Pro Standard for the Embed element.

Step-by-step

  1. Assign an ID to your container. In Carrd, click your Container → go to Settings > Element → give it an ID (e.g., container1).
    1. notion image
  1. Add an Embed element.
  1. Add an Embed to your page. Set it to Hidden and Head.
  1. Paste in this CSS (edit to match your ID and colors):
    1. <style>
      #container1.columns > .wrapper > .inner > div:nth-child(1) { background-color: red; }
      #container1.columns > .wrapper > .inner > div:nth-child(2) { background-color: green; }
      #container1.columns > .wrapper > .inner > div:nth-child(3) { background-color: gray; }
      </style>
      
      • Replace container1 with whatever ID you set.
      • Change the colors to whatever you want.
      • Add or remove lines for more or fewer columns (use nth-child(4), etc.)
notion image
 
Publish the site, and your columns should each have their own background color (will only show on the front end).

Optional extras

  • Adjust the Margins on your Container for gaps between columns.
  • Add more CSS to force the heights of the columns to be the same, or a minimum height.
 
We hope you liked this tutorial. Check out other Carrd tips & tricks or our templates.
We hope you liked this tutorial. Check out other Carrd tips & tricks or our templates.

Subscribe for more carrd news & tips

Subscribe

Written by