Home › Forums › Basel support forum › Responsive issue – attributes on mobile fall off screen
Responsive issue – attributes on mobile fall off screen
- This topic has 9 replies, 2 voices, and was last updated 4 years, 6 months ago by Elise Noromit.
-
AuthorPosts
-
June 5, 2020 at 1:33 pm #201057
MichielParticipantI have a responsiveness issue. The attributes are just partly visible on mobile devices. Most values fall off screen/out of bounds.
June 5, 2020 at 8:15 pm #201152
Elise NoromitMemberHello,
The attributes in the product page are presented as a table. The table is not responsive by its nature. All I can do is to add the scroll on the mobile. Please let me know if you need help with custom CSS.
Best Regards
June 5, 2020 at 9:21 pm #201162
MichielParticipantHow is it possible that on the demo websites of Basel this section does work properly on mobile devices?
Is it fixable with smaller font sizes? If a scroll is the only option so be it, but I would have thought the template supported mobile devices. Especially for kind of a crucial section like product attributes.
Best regards,
MichielJune 6, 2020 at 6:25 am #201223
Elise NoromitMemberHello,
Please provide the screen what block you mean, please?
Best Regards
June 6, 2020 at 8:26 am #201270
MichielParticipantSee attachment. It is the tab with all the product attributes. None of the items seem to be fitting on my mobile phone.
Attachments:
You must be logged in to view attached files.June 6, 2020 at 12:52 pm #201331
Elise NoromitMemberHello,
Your attributes titles are very long. That is why your table is not responsive.
You can use this code on mobile:
body .woocommerce-Tabs-panel--additional_information { max-width: 300px; overflow-x:auto; }
Add this code to the Theme Settings > Custom CSS.
Best Regards
June 7, 2020 at 5:46 pm #201525
MichielParticipantThank you. I also found it helpful to decrease the font size of the attributes to 10/12 pixels, so it will be (almost) completely visible on screen. However, I only got the values at 10 pixels with the following code
body .shop_attributes { font-size: 12px; }
What is needed to target the attribute titles on the left? Those are still large.
June 7, 2020 at 7:04 pm #201531
Elise NoromitMemberHello,
Now your attributes have this code:
.single-product-content .shop_attributes th { font-size: 16px; font-weight: 700; }
You can change the size to 10 or 12 and check what is the best. In addition your can change font-weight from 700 to 400.
The same is for the values of the attributes:
.single-product-content .shop_attributes td p, .single-product-content .shop_attributes th p { font-size: 16px; font-weight: 700; }
Best Regards
June 8, 2020 at 7:32 am #201630
MichielParticipantThank you very much for the support!
June 8, 2020 at 8:18 am #201640
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register