jache Posted April 23, 2022 Posted April 23, 2022 Looking for a code that can either make my events on desktop center on the screen when thumbnails aren't being used or have the title of the events shift over so they aren't under the date tags on mobile view. I like the look of my site when the events on desktop have 'show thumbnails' selected but then not having any thumbnail displayed. Only problem with that is on mobile the event title is partly underneath the date tag on mobile view. So ideally a code to shift the title over a bit to the right on mobile would be the best but if not then a code to shift the events on desktop to center of the screen when no thumbnails are selected. Thanks
tuanphan Posted April 24, 2022 Posted April 24, 2022 Hi, Can you share link to page in screenshot? 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!)
tuanphan Posted April 30, 2022 Posted April 30, 2022 On 4/27/2022 at 11:41 PM, jache said: https://rebelgrace.net/schedule Add to Design > Custom CSS /* event on desktop */ .eventlist.eventlist--upcoming { max-width: 40% !important; margin: 0 auto; } /* event on mobile */ @media screen and (max-width:767px) { .eventlist.eventlist--upcoming { max-width: 100% !important; } .eventlist-column-date { float: left !important; width: 40% !important; } .eventlist-column-info { width: 60% !important; float: left !important; margin-top: 0 !important; } h1.eventlist-title { font-size: 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!)
Yenna Posted May 3, 2022 Posted May 3, 2022 Hi. I would like to centre the title and date/hour of the event but I haven't managed to do it 😞 I tried the code above but it doesn't seem to work 😞 https://www.comeon.business/group-classes-1
tuanphan Posted May 5, 2022 Posted May 5, 2022 On 5/3/2022 at 5:10 PM, Yenna said: Hi. I would like to centre the title and date/hour of the event but I haven't managed to do it 😞 I tried the code above but it doesn't seem to work 😞 https://www.comeon.business/group-classes-1 Use this CSS ul.eventlist-meta.event-meta * { text-align: center !important; } h1.eventlist-title { text-align: center; } 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!)
jache Posted May 9, 2022 Author Posted May 9, 2022 On 4/30/2022 at 3:41 AM, tuanphan said: Add to Design > Custom CSS /* event on desktop */ .eventlist.eventlist--upcoming { max-width: 40% !important; margin: 0 auto; } /* event on mobile */ @media screen and (max-width:767px) { .eventlist.eventlist--upcoming { max-width: 100% !important; } .eventlist-column-date { float: left !important; width: 40% !important; } .eventlist-column-info { width: 60% !important; float: left !important; margin-top: 0 !important; } h1.eventlist-title { font-size: 20px !important; }} Worked for me. Thank you! tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment