From f3c2ac50971ecb66967c67fb3e097b0b6193b932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Jove=CC=81?= Date: Mon, 9 Dec 2024 19:18:43 +0100 Subject: [PATCH] remove margins from first and last item inside text and image --- blocks/text-image/text-image.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/blocks/text-image/text-image.css b/blocks/text-image/text-image.css index 892c957..1818dd7 100644 --- a/blocks/text-image/text-image.css +++ b/blocks/text-image/text-image.css @@ -21,6 +21,14 @@ order: 1; flex-grow: 1; + *:first-child { + margin-top: 0; + } + + *:last-child { + margin-bottom: 0; + } + @media (min-width: 768px) { order: initial; width: calc(100% - var(--image-width));