---
title: Card with image cutout
type: snippet
language: css
tags: [visual]
author: chalarangelo
cover: radio-monstera
dateModified: 2022-12-11T05:00:00-04:00
---
Creates a card with an image cutout.
- Use `background` to add a colored background to a `.container` element.
- Create a `.card` containing a `figure` with the appropriate image for the cutout and any other content you want.
- Use the `::before` pseudo-element to add a `border` around the `figure` element, matching the `.container` element's `background` and creating the illusion of a cutout in the `.card`.
```html
Lorem ipsum dolor sit amet consectetur adipisicing elit.