Jump to content

Horizontally centering a 'badge'/link on my home page

Recommended Posts

Posted

Site URL: https://www.unitedride.com.au

Hi there forum geniuses, I'm trying to add this graphic badge/link to my home page. The code provided (see below) doesn't specify placement so it is displaying left-aligned. (See attached screenshot as well.) What do I need to add to make it display horizontally centred? I am HTML-ignorant. Thank you for your help! -May

<a href="Your ClassPass Page URL"><img alt="2021 ClassPass Awards - Best Fitness" src="https://partners-new.classpass.com/hubfs/2021%20ClassPass%20Awards%20Badges/2021%20ClassPass%20Awards%20-%20Fitness%20-%20Black.png"" width="500px" /></a>

Screen Shot 2022-02-14 at 10.28.58 am.png

Posted

Hi @mlayyye_melb

Add this to your code block instead

<a href="Your ClassPass Page URL"><img alt="2021 ClassPass Awards - Best Fitness" src="https://partners-new.classpass.com/hubfs/2021%20ClassPass%20Awards%20Badges/2021%20ClassPass%20Awards%20-%20Fitness%20-%20Black.png" style="display:block; margin-left:auto; margin-right:auto; width:500px;"/></a>

 

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.