Jump to content

Center author profile horizontally in blogs

Recommended Posts

  • Replies 6
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

4 hours ago, Jen-X said:

How can I center my author profile in my blog posts horizontally? Right now they are left justified. Thank you!

https://www.jenxwebdesign.com/blog/squarespace-blogs-build-trust-audience-google

Is it ok for this style?

image.thumb.png.acd97e4ca27b194f49206fb9280aed44.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
14 hours ago, Jen-X said:

@Beyondspace I would prefer to keep it compact like it is currently, just centered. Is that possible? Thanks!

We will deactivate the style for parent element and set style detail for child elements to get the same result

.blog-item-author-profile-wrapper {
  width: 100%;
  max-width: unset;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
}

.blog-item-author-profile-wrapper > a:first-child {
  padding: 15px 15px 0 15px;
  box-sizing: border-box;
  border-top-left-radius: 15px 15px;
  border-top-right-radius: 15px 15px;
  background: #eeebeb;
  width: 530px;
}

.blog-item-wrapper .author-bio {
  margin: 0;
  padding: 1rem 15px 15px;
  width: 530px;
  background: #eeebeb;
  box-sizing: border-box;
}
.blog-item-author-profile-wrapper .author-website {
  margin-top: 0;
  padding: calc(1rem + 15px) 15px 15px;
  box-sizing: border-box;
  border-bottom-left-radius: 15px 15px;
  border-bottom-right-radius: 15px 15px;
  background: #eeebeb;
  width: 530px;
}

Testing result

image.thumb.png.f1ce1ab49ed0304d0dcc1bd0c261fbbd.png

Let me know how it works on your site

Edited by Beyondspace

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.