@Katharina_be you can of course scope the selectors if you are using the section more than once and don’t want the behavior repeated on other instances. Since you mentioned you had some coding knowledge, I figured I would keep the answer as simple as necessary. It could need some refinement in terms of spacing too.
Strangely it is not working on the hero on the homepage. Do you have an idea why?
In regards to spacing, i was able to lower top and bottom margin. Do you know, how i can increase the space between the image and the text? I don’t know i can address commands to single elements.
Appreciate your support
Best
Kathie
@Kinjaldavra thanks for your comment, but @r8r s solution already works!
In the unscoped selector example (without the .template-page) it should work. Is the code applied already?
In regards to spacing, i was able to lower top and bottom margin. Do you know, how i can increase the space between the image and the text? I don’t know i can address commands to single elements.
What you can do is the following … not super clean, but it’s gonna work to address the different components (I call them “image block” and “text block” here):
.homepage-hero-wrapper > .grid-item:first-child {
/* rules for the image block here */
}
.homepage-hero-wrapper > .grid-item:last-child {
/* rules for the text block here */
}
You may also wrap these rules in the according media-blocks if needed.