Atahualpa Posted April 11, 2023 Share Posted April 11, 2023 Greetings. I hope someone here can help me. I tried ChatGPT first without any luck. We have an events page on our site with an image for each event (it is the logo of the organization who will be visiting us on a given date). The image is stretched and I can't seem to resize it. I'd like to make it about a quarter the size it is in the screenshot. I'd be very grateful for any help I can get. I tried adding the following custom CSS code to no avail: .eventlist-column-thumbnail { width: 300px; /* Change the value to the desired width */ height: 200px; /* Change the value to the desired height */ display: flex; align-items: center; justify-content: center; } .eventlist-column-thumbnail img { object-fit: cover; object-position: center; width: 100%; height: 100%; Here's an image of the page: Link to comment
tuanphan Posted April 16, 2023 Share Posted April 16, 2023 Can you share link to event page? We can check easier 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
Atahualpa Posted April 26, 2023 Author Share Posted April 26, 2023 thanks!https://www.perumission.org/shortterm-missions-schedule Link to comment
Solution tuanphan Posted April 27, 2023 Solution Share Posted April 27, 2023 Add to Design > Custom CSS .eventlist-column-thumbnail img { width: 100% !important; height: auto !important; left: 0 !important; top: 0 !important; } .tweak-events-stacked-thumbnail-size-11-square .eventlist-column-thumbnail { padding-bottom: 15% !important; width: 15% !important; } .eventlist-column-info { width: 85% !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
sarahgcb Posted January 18 Share Posted January 18 is there a way to do this just for desktop version without changing the setting for phone view? Link to comment
tuanphan Posted January 19 Share Posted January 19 12 hours ago, sarahgcb said: is there a way to do this just for desktop version without changing the setting for phone view? Change the code to this @media screen and (min-width:992px) { .eventlist-column-thumbnail img { width: 100% !important; height: auto !important; left: 0 !important; top: 0 !important; } .tweak-events-stacked-thumbnail-size-11-square .eventlist-column-thumbnail { padding-bottom: 15% !important; width: 15% !important; } .eventlist-column-info { width: 85% !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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment