TGF-FC Posted November 25, 2021 Share Posted November 25, 2021 Site URL: https://dandelion-tarantula-wd3n.squarespace.com/about-2 I've used some CSS to left align all the images on a site I'm designing, as follows: .sqs-block-image .design-layout-inline .intrinsic { margin-left: 0; } But now I have a couple of images on the site that I would like to center align. Is there a way to do this in CSS? The site is: https://dandelion-tarantula-wd3n.squarespace.com/ and the password is: 97Jf9iGQ4rRc$H&x. Many thanks! Link to comment
TGF-FC Posted November 25, 2021 Author Share Posted November 25, 2021 Just worked this out! Here's the CSS if anyone else needs it: .sqs-block-image:not(#block-yui_3_17_2_1_1637835061183_5096,#block-yui_3_17_2_1_1637838638129_11479,#block-yui_3_17_2_1_1637835290044_5334) .design-layout-inline .intrinsic { margin-left: 0!important; } Just add your own block IDs between the brackets ( ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment