What's your biggest current challenge? Have your say in Community Polls along the right column.

How can I create a gap between pictures on my webpage?

Solved

How can I create a gap between pictures on my webpage?

UrbanMangoz
Tourist
9 0 5

Hi, I followed the exact steps of this link and was not able to fix my problem. https://community.shopify.com/c/shopify-discussions/how-do-i-add-a-gap-between-these-two-images/m-p/...

 

I only see base.css in my assets and followed the exact steps and nothing changed. I'm trying to create a gap between these photos, please let me know if you know what I can do. 

 

 

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9133 2180 2688

This is an accepted solution.

Hi @UrbanMangoz 

Do you mean like this? 

Made4uoRibe_0-1701193978891.png

If it is, 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:

 

#shopify-section-template--21599151161650__40771d09-037d-4d91-87c1-7da48eb0fcc5 .banner__media.media.scroll-trigger.animate--fade-in img {
    padding-bottom: 30px !important;
    background: white;
}

 

  • And save. 
  • Note: You can increase/decrease the size. 

 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
9133 2180 2688

This is an accepted solution.

Hi @UrbanMangoz 

Do you mean like this? 

Made4uoRibe_0-1701193978891.png

If it is, 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:

 

#shopify-section-template--21599151161650__40771d09-037d-4d91-87c1-7da48eb0fcc5 .banner__media.media.scroll-trigger.animate--fade-in img {
    padding-bottom: 30px !important;
    background: white;
}

 

  • And save. 
  • Note: You can increase/decrease the size. 

 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
UrbanMangoz
Tourist
9 0 5

THANK YOU

UrbanMangoz
Tourist
9 0 5

Now I'm stuck because that only worked for that one page and I need it for every page, please let me know if you can help with that.

Website is https://theurbanmangoz.com/

UrbanMangoz
Tourist
9 0 5

Now I'm stuck because that only worked for that one page and I need it for every page, please let me know if you can help with that.

Website is https://theurbanmangoz.com/

maher22
Visitor
1 0 0

.To create a gap between pictures, use the CSS margin property: This will create a 10-pixel gap between the images. Adjust the margin-right value as needed