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

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
9873 2352 2949

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Made4uo-Ribe
Shopify Partner
9873 2352 2949

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 7 (7)

Liquid_xPert_SJ
Shopify Partner
1348 141 203

@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

- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- 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 🙂- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- 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 🙂
- Need THEME UPDATES but have custom codes? No worries, for an affordable price.

Made4uo-Ribe
Shopify Partner
9873 2352 2949

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
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

 

 

Liquid_xPert_SJ
Shopify Partner
1348 141 203

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

- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- 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 🙂- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- 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 🙂
- Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Made4uo-Ribe
Shopify Partner
9873 2352 2949

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Jferguson1
Explorer
80 3 6

Amazing, thank you very much 🙂

Made4uo-Ribe
Shopify Partner
9873 2352 2949

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.