Jump to content

Blog Post, custom code, want centered

Recommended Posts

I already have some custom code on my blog to make it narrower

.BlogList .sqs-col-12 .sqs-block {
  width: 60% !important;
  max-width: 60% !important;
}

 

But I just want it centred on the page. Which seems like it should be pretty simple code. 

Help! Thanks in advance

xo,

Rebecca

 

image.thumb.png.1a429824dda26187b989cd998567093d.png

Link to comment

@becciames You added it wrong. It's missing a "}" in the code. Remove everything and add this code:

.BlogList .sqs-col-12 .sqs-block {
	width: 60% !important;
	max-width: 60% !important;
	margin: 0 auto !important;
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.