How to move these text in center of image

how to change the location of these text to image line, as shown in image

URL: https://getonboard.me/
Pass: onboard

Hi @Emiway

TRy this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.rich-text.md\:text-left.text-left.relative.z-1 {
    display: grid;
    grid-template-columns: repeat(2,auto); 
    grid-template-rows: repeat(auto-fit, minmax(100px, auto)); 
    row-gap: 40px; 
}

.rich-text.md\:text-left.text-left.relative.z-1 div {
    display: flex;
    justify-content: center;
    margin: 0;
}

.rich-text.md\:text-left.text-left.relative.z-1 h1 {
    display: flex;
    align-content: center;
}

h1.heading.leading-none.title-sm, h2.heading.leading-none.title-sm {
    margin: 0 !important;
    align-content: center;
}

.md\:text-left .split-words {
        align-content: center !important;
    }

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Hi @Emiway

I see your site looks well edited to your liking
but I don’t see you responding to Made4uo-Ribe’s answer
If that solves your problem, please mark the solution as an answer

Want some padding between images & text. And 1st image & text is not properly aligned as others, only in mobile view

Add this code. The first image and text are different from the rest, which is why there is some misalignment.

@media only screen and (max-width: 749px){
div p.media.media--transparent.relative.inline-block {
    align-self: center;
}

.rich-text.md\:text-left.text-left.relative.z-1 div {
    justify-content: left;
}

.rich-text.md\:text-left.text-left.relative.z-1 > :nth-child(1),
.rich-text.md\:text-left.text-left.relative.z-1 > :nth-child(2) {
    margin-bottom: -20px; 
}

.rich-text.md\:text-left.text-left.relative.z-1 h1 {
    padding-top:20px
}
}

And Save.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!