Jump to content

center image in markdown box

Recommended Posts

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

I suggest the following as a starting point.

<div style="margin-left: auto; margin-right: auto; width: 60%;">

  <img src="https://static1.squarespace.com/static/541a13b7e4b06fd9d82ea15f/t/5fbfe948fa04221c7126f835/1606412618969/louise+tree+bllack.jpg">
  
  </div>

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

  • 9 months later...
Posted

@creedon This code helped me! How would I go about making the image bigger for mobile view? 

1863585077_ScreenShot2021-09-23at5_34_28PM.thumb.png.ac78238f7d622425c08b4bcdee7124e1.png663635342_ScreenShot2021-09-23at5_34_37PM.thumb.png.1868e6130330be8a230426607e20d627.png

 

Posted
On 9/23/2021 at 1:35 PM, nicoleisvibrant said:

How would I go about making the image bigger for mobile view? 

The first thing you could do it crop the image so there is a minimum of dead space around the logo. Currently there is quite a bit of it in the horizontal  plane.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.