Jump to content

Center slideshow text and button on tablet and mobile

Go to solution Solved by Ziggy,

Recommended Posts

Posted (edited)

https://www.grdowntownmarket.com/
Site password: Market1234

I'm trying to center the homepage slide show text and button for tablet and mobile, but here's the catch: I want it centered as soon as it snaps to the tablet width and stay centered the entire time you continue to resize your browser window.

Any help would be appreciated!

Edited by ryanbrinkerhoff
Posted

Can you share your website URL and the page this gallery is on?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
@media only screen and (max-width:900px) {
  .slide-content {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .user-items-list-banner-slideshow[data-title-alignment="left"] .list-item-content__title, .user-items-list-banner-slideshow[data-button-alignment="left"] .list-item-content__button-container {
    text-align:left !important;
  }
}

Let me know how that goes.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

  • Solution
Posted

Here's a tweak:

@media only screen and (max-width:900px) {
  .slide-content, .slide-content .list-item-card-background {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .user-items-list-banner-slideshow[data-title-alignment="left"] .list-item-content__title, .user-items-list-banner-slideshow[data-button-alignment="left"] .list-item-content__button-container, .list-item-content__title, .list-item-content__button-container {
    text-align:center !important;
  }
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

That's really strange, it doesn't seem to be accepting the CSS correctly, and I'm not sure why. Do you have other CSS in your Custom CSS that might be affecting this?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

  • 8 months later...
Posted
On 9/18/2024 at 10:11 PM, sunicreative said:

Can you share your fix? I'm having what I believe to be a similar issue. Using the updated code above, this is how mine is looking (attached).

Screenshot 2024-09-18 at 11.11.31 AM.png

Can you share link to this 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!)

Posted
On 9/21/2024 at 5:41 PM, sunicreative said:

Yes the page link is https://mbinteriors.ca/press (mobile). I changed it back to left align for now because it looked stupid centred but off-centred. 

You can use this code to Website Tools > Custom CSS

@media screen and (max-width:767px) {
    section[data-section-id="646521fab7a9d93a9f32bd00"] li * {
        text-align: center !important;
        justify-content: center !important;
    }
      section[data-section-id="646521fab7a9d93a9f32bd00"] .list-item-content * {
          max-width: 100% !important;
      }
}

image.png.2b7654838440cc796d74c9b60218c787.png

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

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.