Bauyu Posted March 18, 2022 Share Posted March 18, 2022 Site URL: https://www.bauyu.com/art-people-intro The attachments are desktop view and tablet view. As you can see the text and buttons are displayed well on the desktop. But when on tablet view, they look very long and narrow. Here is the code I used, is it related to the code I used? #block- { border-bottom: 8px groove #F0D1BF; padding: 0px ; margin-left: 15px; margin-right: 15px } #block- { background: #FAF8F3 ; margin-left: 15px; margin-right: 15px } #block- { background: #FAF8F3 ; margin-left: 15px; margin-right: 15px } Link to comment
tuanphan Posted March 19, 2022 Share Posted March 19, 2022 Hi, How about changing to 2 items/row on tablet only? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Bauyu Posted March 21, 2022 Author Share Posted March 21, 2022 On 3/19/2022 at 4:31 PM, tuanphan said: Hi, How about changing to 2 items/row on tablet only? I think it is possible to try, could you provide some code? Thank you! Link to comment
tuanphan Posted March 21, 2022 Share Posted March 21, 2022 Add to Design > Custom CSS /* Tablet Art people */ @media screen and (max-width:991px) and (min-width:768px) { div#page-6204857e20bdac7a9d26d54e { .row:nth-child(2)>.col:nth-child(-n+2) { width: 50%; } .span-4 .span-2:last-child { width: 100%; } .span-4 .span-2:first-child { display: none; } .span-6 { width: 100%; } .span-6 .span-2:nth-child(-n+2) { width: 50%; margin-top: 20px; }} div#page-6204a6624613c972486f2c5f { .row>.col:nth-child(-n+2) { width: 50%; } .row>.col:nth-child(-n+2) .span-2:first-child { display: none; } .row>.col:nth-child(-n+2) .span-2:last-child { width: 100%; } .span-6 { width: 100%; }} } Bauyu 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Bauyu Posted March 22, 2022 Author Share Posted March 22, 2022 2 hours ago, tuanphan said: Add to Design > Custom CSS /* Tablet Art people */ @media screen and (max-width:991px) and (min-width:768px) { div#page-6204857e20bdac7a9d26d54e { .row:nth-child(2)>.col:nth-child(-n+2) { width: 50%; } .span-4 .span-2:last-child { width: 100%; } .span-4 .span-2:first-child { display: none; } .span-6 { width: 100%; } .span-6 .span-2:nth-child(-n+2) { width: 50%; margin-top: 20px; }} div#page-6204a6624613c972486f2c5f { .row>.col:nth-child(-n+2) { width: 50%; } .row>.col:nth-child(-n+2) .span-2:first-child { display: none; } .row>.col:nth-child(-n+2) .span-2:last-child { width: 100%; } .span-6 { width: 100%; }} } Thank you!! It works!! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment