Jump to content

Event Centering/Moving Title

Recommended Posts

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

Screen Shot 2022-04-23 at 12.44.37 PM.png

Screen Shot 2022-04-23 at 12.55.54 PM.png

Link to comment
  • Replies 6
  • Views 481
  • Created
  • Last Reply

Top Posters In This Topic

On 4/27/2022 at 11:41 PM, jache 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;
}}

 

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
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

Zrzut ekranu 2022-05-3 o 11.08.32.png

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!)

Link to comment
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!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.