Solved

How can I eliminate gaps between content blocks on my website?

Jferguson1
Explorer
80 3 6

Hi there,

 

Im trying to close the gaps between my content blocks/sections on my home page and another page.

Screenshot 2024-03-12 at 15.05.21.png

Screenshot 2024-03-12 at 15.05.55.png

https://www.tryy.co.uk

https://www.tryy.co.uk/pages/thank-you-page

password - help

 

Any help is appreciated 

 

 

 

 

Accepted Solutions (2)

Made4uo-Ribe
Shopify Partner
5515 1327 1635

This is an accepted solution.

Hi @Jferguson1 

check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

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:

 

.section + .section {
    margin-top: 0px;
    border: 0px;
} 
.section-template--21069259473236__image_with_text_mNek7b-padding.gradient.color-scheme-a2999bb8-bfc3-412f-bfe8-3bdff5efbd2b {
    padding-top: 50px;
}

 

And Save. 

Result:

Made4uoRibe_0-1710265935062.png

 

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Made4uo-Ribe
Shopify Partner
5515 1327 1635

This is an accepted solution.

This buttons adjustment only for mobile right? Check this one then. 

Same Instruction. 

 

@media only screen and (max-width: 749px){
body .image-with-text__content .image-with-text__text + .button {
    margin-top: 0px !important;
}
div#ImageWithText--template--21069259473236__image_with_text_mNek7b {
    padding-top: 0px;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1710334794306.png

 

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 7 (7)

Liqiud_xPert_SJ
Shopify Partner
730 93 115

@Jferguson1 

 

please add below css into your theme files base.css file at the end

Online Theme > Editcode > Assets folder > base.css file

 

@media screen and (min-width: 480px) {
  .section + .section {
    margin-top: 0 !important;
  } 
}

 

thanks

- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂

Made4uo-Ribe
Shopify Partner
5515 1327 1635

This is an accepted solution.

Hi @Jferguson1 

check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

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:

 

.section + .section {
    margin-top: 0px;
    border: 0px;
} 
.section-template--21069259473236__image_with_text_mNek7b-padding.gradient.color-scheme-a2999bb8-bfc3-412f-bfe8-3bdff5efbd2b {
    padding-top: 50px;
}

 

And Save. 

Result:

Made4uoRibe_0-1710265935062.png

 

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Jferguson1
Explorer
80 3 6

Thats perfect thank you very much - Do you know how I could move the button higher up the page?

 

Screenshot 2024-03-12 at 20.47.05.png

Thanks again

 

 

Liqiud_xPert_SJ
Shopify Partner
730 93 115

@Jferguson1  you can use margin in minus or may be position to change its place. thanks

- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂
Made4uo-Ribe
Shopify Partner
5515 1327 1635

This is an accepted solution.

This buttons adjustment only for mobile right? Check this one then. 

Same Instruction. 

 

@media only screen and (max-width: 749px){
body .image-with-text__content .image-with-text__text + .button {
    margin-top: 0px !important;
}
div#ImageWithText--template--21069259473236__image_with_text_mNek7b {
    padding-top: 0px;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1710334794306.png

 

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Jferguson1
Explorer
80 3 6

Amazing, thank you very much 🙂

Made4uo-Ribe
Shopify Partner
5515 1327 1635

Welcome, please dont forget to hit like also.. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com