How can i remove the highlighted area from my image to text block in showcase theme?

Hi there,

Im wanting to remove the highlighted pink area from the text section in my image to text block. I have tried different code and nothing seems to be working. I cropped my image to be the correct size but it just keeps adding more padding so the entire block stays the same size. is there anything i can do to reduce the size of this block and the empty space?

1 Like

hey, sorry, this hasnt worked.

i dont have a theme.css section, but i have tried this code in style.css.liquid, theme.liquid & slick-theme.css

Hi @printedbyus

Just a clarification, do you like to remove the padding I try to remove the padding on every screen size. And this is the result.

Let me know what you like to get in here.

HI, yes I would like this kind of thing with just a little bit of padding!

1 Like

oh, okay I understand now. 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:

@media (min-width: 1441px){
.padded-block {
    padding: 0px;
}
}
@media (min-width: 992px){
.padded-block {
    padding: 0px;
}
}
@media (min-width: 768px){
.padded-block {
    padding: 0px;
}
}

And Save.

Every screen size have different padding I take all of that and remain this one.

Made4uoRibe_0-1713373178022.png

If the code above wont work add !important.

@media (min-width: 1441px){
.padded-block {
    padding: 0px !important;
}
}
@media (min-width: 992px){
.padded-block {
    padding: 0px !important;
}
}
@media (min-width: 768px){
.padded-block {
    padding: 0px !important;
}
}

And Save.

Result:

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

Hi there!

Thanks so much for your help, this code does work and has applied across the store, however only on some image and text blocks. Heres a list of ones it hasn’t applied to. Do you have any idea why it wouldn’t apply to these ones? thanks again.

Gravel pit section - https://www.printedbyus.org/pages/stockists

Printed By Us Leeds - https://www.printedbyus.org/pages/printed-by-us-leeds

Printed By Us Sheffield - https://www.printedbyus.org/pages/printed-by-us-sheffield

Clothing-stanley-stella product pages - https://www.printedbyus.org/collections/kids-babywear/products/happy-shapes-kids-tshirt

Prints product pages - last section has code applied others don’t - https://www.printedbyus.org/collections/art-prints/products/hawley-portrait-screen-print-bubba2000

default product pages - https://www.printedbyus.org/products/archer-project-mug

Clothing-salvage product pages - https://www.printedbyus.org/products/bee-reyt-sweater-luke-horton

Clothing product pages - https://www.printedbyus.org/products/cest-la-vie-tshirt-tom-newell

i also should add this code didnt work in the slick-theme.css, but it did work once i added it to styles.css.liquid

Seems like in the home page, it follow the height by the text. On other pages it follow the height of the images. Try to resize your images and check if the text area also lesser.