I’m using some “picture with text”-elements on my shopify site (Dawn Theme). In the settings I chose “overlapping” of picture and text since I want the pictures to be displayed with a fix size (the option “no overlapping” results in a zoom of the pictures to adapt the picture height to the length of the corresponding text).
However, so far I was not able to align the top of the picture and the first line of the text horizontally on the same level. Is there somebody who can provide a code that performs such an alignment?
I have further “picture with text”-elements on other sites with the setting “no overlapping”. These elements need to stay as they are and shouldn’t be influenced by the code.
The issue here is that with the overlapping option enabled in Dawn’s Picture with Text section, the image and text are no longer aligned at the top. This can make the layout appear unbalanced.
You can fix this by using custom CSS to force both the image and text to align at the top. Just make sure to add a unique class (like section-id-vorteile) to the section you want to affect, and then target it in your CSS like this:
Thank you very much! This code leads to the wanted result but it also affects the “picture and text”-elements on my side that I do not want to affect with it. How can I specifically affect only the elements on one singe page (https://my-eloo.de/pages/vorteile)?
Thank you very much. That sounds like a good solution but unfortunately I do not know where I have to add the code. Can you give me a brief instruction where I have to copy it to? Thank you!
Hello again! I wasn’t able to solve this issue so far. I have add an if-statement to the code diego_ezfy posted but the code still affects all pages. Is there anybody who can tell me how I can fix this if-statement in a way that the code only affects the “picture and text”-elements on one specific page: (https://my-eloo.de/pages/vorteile)?
This is what I have add to the end of my base.css:
I was finally able to solve the issue. I copied the code provided by @diego_ezfy to the field “custom css” of every “picture and text”-element I wanted to affect directly in the customizer. That’s it…