Card
+Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti repellat, consequuntur doloribus voluptate esse iure?
+diff --git a/snippets/card-image-cutout.md b/snippets/card-image-cutout.md new file mode 100644 index 000000000..e49e7a222 --- /dev/null +++ b/snippets/card-image-cutout.md @@ -0,0 +1,81 @@ +--- +title: Card with image cutout +tags: visual +expertise: intermediate +author: chalarangelo +cover: blog_images/radio-monstera.jpg +firstSeen: 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.
+Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti repellat, consequuntur doloribus voluptate esse iure?
+