FilipKar Posted January 26 Posted January 26 Hi, My homepage has a lot of Summaries in grid layout. Is there a way to make the grid of summaries to follow a rule: Items per row. Can be edited in a blog, why not in the summary. Thanks, https://hiddengallery.cz
tuanphan Posted January 28 Posted January 28 How many items per row? For desktop/mobile Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
FilipKar Posted January 28 Author Posted January 28 Hi, On my index basically 2 per row. The summary of product will be probably 4. But I think I could change to code in the future. Mobile all 1 per row. Only Podcast I think could be 2 rows. Thanks,
tuanphan Posted January 30 Posted January 30 On 1/29/2024 at 3:30 AM, FilipKar said: Hi, On my index basically 2 per row. The summary of product will be probably 4. But I think I could change to code in the future. Mobile all 1 per row. Only Podcast I think could be 2 rows. Thanks, You mean change this to 2 items/row on mobile? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
FilipKar Posted February 1 Author Posted February 1 yes, a Think that would look better. Especially if I want to feature latest 4 episodes.
tuanphan Posted February 5 Posted February 5 Add this code to Website > Website Tools (under Not Linked) > Custom CSS @media screen and (max-width:767px) { div#block-yui_3_17_2_1_1704638721399_15110 .summary-item { width: calc(~"50% - 20px") !important; float: left !important; clear: none !important; } div#block-yui_3_17_2_1_1704638721399_15110 .summary-item:nth-child(2n+1) { margin-right: 20px !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
FilipKar Posted February 5 Author Posted February 5 Cool, and is possible to force summaries to be 4 in a row on laptop? My 13inch looks great but 15inch there is empty space. I want to be the same across all sizes. Thanks,
tuanphan Posted February 7 Posted February 7 On 2/6/2024 at 4:57 AM, FilipKar said: Cool, and is possible to force summaries to be 4 in a row on laptop? My 13inch looks great but 15inch there is empty space. I want to be the same across all sizes. Thanks, Use this @media screen and (min-width:768px) { div#block-yui_3_17_2_1_1704638721399_15110 .summary-item { width: calc(~"25% - 20px") !important; float: left !important; clear: none !important; } div#block-yui_3_17_2_1_1704638721399_15110 .summary-item:nth-child(2n+1) { margin-right: 20px !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
FilipKar Posted February 10 Author Posted February 10 Cool, Thanks, is it possible to center the podcast?
tuanphan Posted February 12 Posted February 12 Use this new code @media screen and (min-width:768px) { div#block-yui_3_17_2_1_1704638721399_15110 .summary-item { width: calc(~"25% - 20px") !important; float: left !important; clear: none !important; } div#block-yui_3_17_2_1_1704638721399_15110 .summary-item:nth-child(2n+1) { margin-right: 20px !important; } div#block-yui_3_17_2_1_1704638721399_15110 .summary-thumbnail-container img { width: 100% !important; height: auto !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
FilipKar Posted February 13 Author Posted February 13 This works in sqaurespace preview but not in my iPhone SE2. On iPhone there is each image separate full width.
tuanphan Posted February 15 Posted February 15 On 2/13/2024 at 7:13 PM, FilipKar said: This works in sqaurespace preview but not in my iPhone SE2. On iPhone there is each image separate full width. Can you take a screenshot of problem? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment