Re: Full width image with info tabs

Solved

How can I make an image full width in the info tabs section on Shopify plus?

millakindred
Shopify Partner
12 0 2

Hi there,

 

I am using the 'combine theme' on shopify plus. 

 

I am wishing to make the image full width on the info tabs section (so not have the gap on the left side of the section in the screenshot). It is an SVG image how do I go about changing this?

Screenshot 2024-02-21 at 9.34.17 AM.png

Thank you,

Milla

Accepted Solution (1)

tim
Shopify Partner
4253 484 1561

This is an accepted solution.

I guess it's a section like this one: https://moodiostudio.com/#shopify-section-template--15705531908301__166266065378da2b75 

 

You may try CSS code like this: 

@media (min-width:768px) {
  .info-tabs {
    margin-left: calc(50% - 50vw);
  }
  
  .info-tabs_panels {
    width: 50vw;
  }
}

tim_0-1708488677353.png

 

However:

The code above would apply to all sections of this type, so may require better targeting;

Should work when images are on the left (because margin-left);

Also wanted to warn that there are people with large and ultra-wide monitors where full-blown things like this may not look pretty, but it's hard to suggest anything without seeing the actual image:

tim_2-1708489012996.png

 

 

 

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

View solution in original post

Replies 7 (7)

Made4uo-Ribe
Shopify Partner
10100 2398 3032

Hi @millakindred 

Would you mind to share the preview? 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.
millakindred
Shopify Partner
12 0 2
Hi there, here is the preview link. Thanks

https://maskco.com/?_ab=0&_fd=0&_sc=1

Made4uo-Ribe
Shopify Partner
10100 2398 3032

Im sorry, im still not seeing the section that you like to edit. Is this a product page? or a Image with text section? 

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.
millakindred
Shopify Partner
12 0 2

Hi @Made4uo-Ribe - apologies sent the wrong link

https://maskco.com/?_ab=0&_fd=0&_sc=1

tim
Shopify Partner
4253 484 1561

This is an accepted solution.

I guess it's a section like this one: https://moodiostudio.com/#shopify-section-template--15705531908301__166266065378da2b75 

 

You may try CSS code like this: 

@media (min-width:768px) {
  .info-tabs {
    margin-left: calc(50% - 50vw);
  }
  
  .info-tabs_panels {
    width: 50vw;
  }
}

tim_0-1708488677353.png

 

However:

The code above would apply to all sections of this type, so may require better targeting;

Should work when images are on the left (because margin-left);

Also wanted to warn that there are people with large and ultra-wide monitors where full-blown things like this may not look pretty, but it's hard to suggest anything without seeing the actual image:

tim_2-1708489012996.png

 

 

 

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
millakindred
Shopify Partner
12 0 2

Hi @tim thanks for the above! 

I was wondering how I make this full width also on mobile?

tim
Shopify Partner
4253 484 1561

For this we need to add another @media rule to the code above so that it looks like this:

@media (min-width:768px) {
  .info-tabs {
    margin-left: calc(50% - 50vw);
  }
  
  .info-tabs_panels {
    width: 50vw;
  }
}

@media (max-width:767px) {
 .info-tabs_panels {
    width: 100vw;
    margin: 0 calc(50% - 50vw);
  }
}

 

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com