Jump to content

How to center text in promotional pop on mobile

Recommended Posts

Hi,

Is there a code to center the text on the promotional pop up - on mobile

I am currently using this code, but it only centres the body of the text and not the main title.

 

 

.sqs-slice-body-content p {

    text-align: center;

    width: 100%;

}

.sqs-slide-wrapper[data-slide-type="popup-overlay"] [data-slice-type="body"] {

    max-width: 100%;

} 

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Try this CSS, if it doesn't work, please share link to your site

@media screen and (max-width:767px) {
.sqs-slice-body-content * {
	text-align: center !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.