Resizin table on pop up in product page

Solved

Resizin table on pop up in product page

radaApeta
Excursionist
49 0 17

Hello,

i need help with pop up on product page. In my pop up there should be a sizing chart for shoes, but its not very well-arranged and hard to see what is what. On my desktop version it looks ok, I need only help with mobile verison (make it smaller so everythin can fit etc...) Thank you for your time 🙂

 

https://81e325-28.myshopify.com/
0007

unnamed (9).jpg

valenta14
Accepted Solution (1)
BSSCommerce-B2B
Shopify Partner
1718 512 574

This is an accepted solution.

@radaApeta , Try this one 🙂

<style>
.product-popup-modal__content table  th {
   width: 25%;
}
.product-popup-modal__content table {
   display: table;
   max-width: 100%;
}
.product-popup-modal__content-info * {
  text-align: left!important;
}
@media screen and (max-width: 749px) {
  .product-popup-modal__content-info * {
     font-size: 12px!important;  
  }
}
</style>

Result

Desktop:

BSSCommerceB2B_1-1726767305603.png

Mobile:

BSSCommerceB2B_2-1726767319022.png

 

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

View solution in original post

Replies 10 (10)

BSSCommerce-B2B
Shopify Partner
1718 512 574

@radaApeta ,

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid

<style>
@media screen and (max-width: 749px) { {
  .product-popup-modal__content-info * {
     font-size: 12px!important
  }
  .product-popup-modal__content-info table th {
    width: 100%;
    text-align: left   
  }
}
</style>

Result:

BSSCommerceB2B_0-1726667739642.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

radaApeta
Excursionist
49 0 17

hey, thanks for the code, bud it doesnt work for me. If you could send another one a make each coloum to have same spacing between each other  I would be really grateful! Thank you @BSSCommerce-B2B 

valenta14
BSSCommerce-B2B
Shopify Partner
1718 512 574

@radaApeta, sorry you can change the code like this

 

<style>
@media screen and (max-width: 749px) {
  .product-popup-modal__content-info * {
     font-size: 12px!important;
     text-align: center!important;
  }
  .product-popup-modal__content-info table th {
    width: 100%;
  }
}
</style>

 

Result:

BSSCommerceB2B_0-1726759649685.png

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

radaApeta
Excursionist
49 0 17

Hey, THANKS AGAIN, but the nike a jordan had 5 colomuns and other tables had only 4, so the others didnt look good, so i make the nike a jordan only 4 column. Can you please take a last look a try to fix? Also if its possible that the heading and subtitle is not centred. If its posibble i would like to be the same way as it is on desktop verison. Thanks again, you are really helping me !

radaApeta_0-1726760359434.png

unnamed (13).jpg

valenta14
BSSCommerce-B2B
Shopify Partner
1718 512 574

This is an accepted solution.

@radaApeta , Try this one 🙂

<style>
.product-popup-modal__content table  th {
   width: 25%;
}
.product-popup-modal__content table {
   display: table;
   max-width: 100%;
}
.product-popup-modal__content-info * {
  text-align: left!important;
}
@media screen and (max-width: 749px) {
  .product-popup-modal__content-info * {
     font-size: 12px!important;  
  }
}
</style>

Result

Desktop:

BSSCommerceB2B_1-1726767305603.png

Mobile:

BSSCommerceB2B_2-1726767319022.png

 

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

radaApeta
Excursionist
49 0 17

THANK YOU !!!! @BSSCommerce-B2B 

valenta14

BSS-TekLabs
Shopify Partner
2344 698 823

- Here is the solution for you @radaApeta 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

<style>
@media only screen and (max-width: 600px) {
    .product-popup-modal__content table {
        max-width: 100% !important;
        width: 100% !important;
    }
.product-popup-modal__content-info {
    padding-right: 0 !important;
}
.GeneratedTable th {
    width: 100% !important;
}
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1726667972016.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
radaApeta
Excursionist
49 0 17

Hello, thanks that worked perfectly, but can put the EU to the left so that its more eye pleasing and there will be more spaces between each column. Thank you

valenta14

Made4uo-Ribe
Shopify Partner
8202 1972 2410

Hi @radaApeta 

Check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

 

@media screen and (max-width: 749px) {
table.GeneratedTable tr {
    margin: auto;
    text-align: center;
}
}

 

 

And save. 

Result:

Made4uoRibe_0-1726668088003.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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

PageFly-Amelia
Shopify Partner
576 162 232

@radaApeta 

This is Amelia from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code. 

Step 2: Search file base.css

Step 3: Paste the below code at bottom of the file -> Save



@media (max-width: 767px){

 .product-popup-modal__content-info {

    padding: 0;

}

 

table.GeneratedTable {

    display: table !important;

    max-width: 100% !important;

}

 

.GeneratedTable td {

    text-align: center;

}

}



Hope that my solution works for you.

Best regards,

Amelia | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 
➜ Weekly updated Shopify tutorials on YouTube 


All features are available from Free plan. Live Chat Support is available 24/7.