image in description responsive mobile

image in description responsive mobile

jsngn
Excursionist
27 0 2

Hello 

I want to make my description with image to be mobile responsive

Currently, in desktop, I make a table with 2 column image

in mobile, it is also have 2 column, but very small image, can not see clearly so i want to ask how can I make in mobile just 1 picture in 1 row

Screenshot at Jun 11 15-34-52.pngIMG_2653 2.PNGIMG_2652 2.PNG

Replies 16 (16)

LuffyOnePiece
Shopify Partner
645 93 117

Hi @jsngn ,

 

Can you please send me preview URL of the store?

 

Thank you

Sandeep Pangeni
Need help with your store? sandeeppangeni17@gmail.com
For quick response, Contact In WhatsApp +9779867521184
jsngn
Excursionist
27 0 2

BSSCommerce-B2B
Shopify Partner
1969 564 566

Hi @jsngn 

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file css-site.css. Search for the following CSS snippet

 

.rte table {
    table-layout: fixed;
}

 

Please change it to

 

@media screen and (max-width: 750px) {
.rte table tr td {
    width: 100% !important;
}
}
@media screen and (min-width: 750px) {
.rte table {
    table-layout: fixed;
}
}

 

Result

BSSCommerceB2B_0-1718103488720.png

If it helps you, please like and mark it as the solution.

Best Regards

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

jsngn
Excursionist
27 0 2

Thanks, in mobile it helps. But in desktop it turns out that only image, the column with 2 images dissapears 😞

BSSCommerce-B2B
Shopify Partner
1969 564 566

I have updated the code above. Have you tried the new code? There is an issue on the desktop. Could you explain the problem in more detail and provide some images?

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

jsngn
Excursionist
27 0 2

Oh great, thanks. it works now, but on mobile it only show up the 1st and 2nd image. the 3rd and 4th disappear.

IMG_2657.PNGScreenshot at Jun 11 21-57-59.png

BSSCommerce-B2B
Shopify Partner
1969 564 566

I understand. Please make a slight modification to the CSS in the css-site.css file

@media screen and (max-width: 750px) {
.rte table tr td {
    width: 100% !important;
    display: block !important;
    height: 100% !important;
}
}
@media screen and (min-width: 750px) {
.rte table {
    table-layout: fixed;
}
}

Don't forget to like and mark it as the solution if this helps you. Regards.

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

jsngn
Excursionist
27 0 2

Thanks. but now there is a gap, the 2nd, 3rd image disappear 😞

IMG_2660.PNGIMG_2659.PNGIMG_2658.PNG

BSSCommerce-B2B
Shopify Partner
1969 564 566

Hi @jsngn 

I'm not experiencing the same issue on my computer, which is quite strange. I have recorded a video for you to watch. How can I replicate the issue you're encountering?
https://www.loom.com/share/b398f3ec3b364d82aa0ec0b9c4faddc9

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

jsngn
Excursionist
27 0 2

Hi @BSSCommerce-B2B 

In your video, you test in mobile dimension samsung galaxy, it works

I also try in my android samsung phone, it works

but in my 2 other mobile apple iphone, it still like this

So I guess it happens because android and ios are differents

https://drive.google.com/file/d/1GEFS1g93kPm8DvgjoiTb28xjuBkEz_Zk/view?usp=sharing

 

BSSCommerce-B2B
Shopify Partner
1969 564 566

Thank you for explaining your reasoning. I will check this issue and respond as soon as possible. Have a nice day

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

jsngn
Excursionist
27 0 2

thank you very much for your help

have a nice day too!!

BSSCommerce-B2B
Shopify Partner
1969 564 566

I checked again on the Safari browser and found that the issue is indeed caused by display: block !important, which only works well on Android. I tried changing it to display: contents !important and it worked well on both Android and iOS. The revised section will look like this:

 

@media screen and (max-width: 750px) {
.rte table tr td {
    width: 100% !important;
    display: contents !important
    height: 100% !important;
}
}
@media screen and (min-width: 750px) {
.rte table {
    table-layout: fixed;
}
}

 

Try this and I hope the issue will truly disappear =)))

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

jsngn
Excursionist
27 0 2

haha thanks a lot for your help

But now both android and ios it show 1st and 3rd image, the 2nd and 4th is disappear 😭

BSSCommerce-B2B
Shopify Partner
1969 564 566

Hi @jsngn 

It's strange. I've seen it working on mobile in Safari before. Something terrible must have happened. I'll check again and get back to you. I'm terribly sorry for the inconvenience.

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

jsngn
Excursionist
27 0 2

Thank you very much for your help!