kh123123 Posted February 12 Share Posted February 12 I'm trying to add two summary blocks to my homepage. These blocks will be next to each other and feature two posts each. One summary block will be pulled from a blog and another from our events page. When I created this, the images were not the same size (the blog images are shorter than the events images). How can I make all images the same size? Link to comment
tuanphan Posted February 13 Share Posted February 13 Can you share link to this page? I think we can use some code to make both same size 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!) Link to comment
kh123123 Posted February 13 Author Share Posted February 13 That would be great! Right now I'm working with this test page: https://www.aimphotonics.com/home-1-1-test It will eventually go on our homepage: https://www.aimphotonics.com/ Link to comment
tuanphan Posted February 14 Share Posted February 14 Try this code to Website > Website Tools (under Not Linked) > Custom CSS div#block-b310c8d0a6fda8af9b05 { .summary-thumbnail.img-wrapper { padding-bottom: 56.25% !important; } .summary-thumbnail.img-wrapper img { position: absolute !important; top: 0; left: 0; width: 100%; height: 100%; }} 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!) Link to comment
kh123123 Posted February 14 Author Share Posted February 14 Thanks! That worked, but it gave it too much padding at the bottom so that the "More Events" button dropped way down. I would need a way to get rid of that white space that is under the event images. Link to comment
tuanphan Posted February 16 Share Posted February 16 On 2/14/2024 at 10:18 PM, kh123123 said: Thanks! That worked, but it gave it too much padding at the bottom so that the "More Events" button dropped way down. I would need a way to get rid of that white space that is under the event images. Edit Summary > Click Design Tab > Choose Grid instead of Wall 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!) Link to comment
kh123123 Posted February 16 Author Share Posted February 16 Unfortunately, this didn't seem to work; the blocks are back to having different-sized images. Maybe this isn't possible? Link to comment
tuanphan Posted February 17 Share Posted February 17 Use this new code div#block-b310c8d0a6fda8af9b05 { .summary-item { margin-bottom: 0px !important; } .summary-thumbnail-container { padding-bottom: 56.25% !important; } .summary-thumbnail-container img { position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !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!) Link to comment
kh123123 Posted February 20 Author Share Posted February 20 On 2/17/2024 at 5:39 AM, tuanphan said: Use this new code div#block-b310c8d0a6fda8af9b05 { .summary-item { margin-bottom: 0px !important; } .summary-thumbnail-container { padding-bottom: 56.25% !important; } .summary-thumbnail-container img { position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important; }} That now creates too much padding below news images so that the "More News" button dropped way down. Link to comment
tuanphan Posted February 21 Share Posted February 21 Can you add code to CSS box? I can check again easier I just tested in browser and it looks fine 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!) 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