Center Button on Squarespace, using code block | Community
Skip to main content
Answered

Center Button on Squarespace, using code block


hbeckwith
Forum|alt.badge.img+1

I’m embedding a Typeform contact form into a single Squarespace blog post using a block code.

I was able to manipulate the code a bit to get the initial button to match my branding, but cannot figure out how to center it. I

I’ve attached a snapshot of the code and how it currently looks (the blog is unpublished at the time of this posting).

Can anyone familiar with this concept please help me, a coding noob, to center that initial button?

 

Best answer by Liz

Hi @hbeckwith Happy Wednesday! All you have to do is add: 

<center>

before the code and 

</center> 

after the code. 

Let me know if that doesn’t work!

View original

10 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15018 replies
  • Answer
  • July 12, 2023

Hi @hbeckwith Happy Wednesday! All you have to do is add: 

<center>

before the code and 

</center> 

after the code. 

Let me know if that doesn’t work!


Grace
Community Team
Forum|alt.badge.img+5
  • Community Advocate
  • 2687 replies
  • July 18, 2023

Hey @hbeckwith how’s it going?

Let us know if Liz suggestion worked for you or if you need any more help! 😊


hbeckwith
Forum|alt.badge.img+1
  • Author
  • Sharing wisdom
  • 13 replies
  • July 19, 2023

@Liz @Grace 

 

Liz’s answer did not work. 


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15018 replies
  • July 19, 2023

Hm, can you send the URL where you have the form embedded with that code, @hbeckwith ?


hbeckwith
Forum|alt.badge.img+1
  • Author
  • Sharing wisdom
  • 13 replies
  • July 19, 2023
Liz wrote:

Hm, can you send the URL where you have the form embedded with that code, @hbeckwith ?

http://hilarybeckwith.com/blog/food-sensitivity-test


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15018 replies
  • July 20, 2023

Thanks, @hbeckwith ! I’m not seeing those center tags added around the code. Could you please add those? 
 

 


hbeckwith
Forum|alt.badge.img+1
  • Author
  • Sharing wisdom
  • 13 replies
  • July 20, 2023
Liz wrote:

Thanks, @hbeckwith ! I’m not seeing those center tags added around the code. Could you please add those? 
 

 

I tried them and when they didn’t work, I removed them.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15018 replies
  • July 20, 2023

@hbeckwith Could you please add them back so I can take a look at what happens when they’re added? 


hbeckwith
Forum|alt.badge.img+1
  • Author
  • Sharing wisdom
  • 13 replies
  • July 20, 2023
Liz wrote:

@hbeckwith Could you please add them back so I can take a look at what happens when they’re added? 

It didn’t work initially, and now appears to be working, so this is resolved. Thank you anyway!


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15018 replies
  • July 21, 2023

Reply