Jump to content

How to left-align images in a blog posts

Go to solution Solved by PurpleFox,

Recommended Posts

Posted

Hello !

Each of my blog posts is made up of an image (which is not a featured image but an image added by the image block) and text.

My text is aligned to the left and the only option I've found in the image DESIGN settings is to stretch the image, but this doesn't produce the desired effect of aligning the image to the left like the text.

Is it possible, with some CSS ?, to align all the images added to my posts to the left?

Thanks a lot for your precious help !

 

 

Screenshot 2024-08-25 at 18.06.40.png

  • Replies 4
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted (edited)
15 hours ago, PurpleFox said:

Is it possible, with some CSS ?, to align all the images added to my posts to the left?

@PurpleFox This is normal with blog pages because they use something called LayoutEngine (now known as the "Classic" editor) instead of Fluid Engine.

On these pages, the Image Block will use all the available width and will be centred if the image dimensions are smaller than the available space.

There are two ways to left-align images. You can either:

  • add a Spacer Block to the right of an Image Block to shrink it to the left, or
  • add this to Custom CSS:
/************************************** 
Left align blog post image blocks
**************************************/
.blog-item-wrapper .sqs-block-image .design-layout-inline .intrinsic {
  margin-left: 0;
}

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

  • 2 weeks later...

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.