How do you centre align pop out button | Community
Skip to main content
Answered

How do you centre align pop out button


Jason Hier

Hello

I am copying the embed code for Pop out so that users click on the button and form pops out.

When I past the code the button aligns to the left and I want it in the middle of the page.

I have added the following to the html code which is okay on laptop/pc but on mobile it crops the button.  It is not responsive.

width:40%;margin left:30%;margin-right:30%;

The website is WordPress

Thanks for any help on this.

Best regards

Jason

 

Best answer by Liz

Hi @Jason Hier thanks for stopping by the community! :grinning:

You should be able to add <center> before the code and </center> after the code to place the button in the middle. 

If that doesn’t work, do you mind sharing the URL where you have the form embedded? Thanks!

View original

3 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15012 replies
  • Answer
  • May 10, 2021

Hi @Jason Hier thanks for stopping by the community! :grinning:

You should be able to add <center> before the code and </center> after the code to place the button in the middle. 

If that doesn’t work, do you mind sharing the URL where you have the form embedded? Thanks!


Jason Hier
  • Author
  • Explorer
  • 1 reply
  • May 10, 2021

Hi @Liz 

Thanks for replying:smiley:

Yep that works :thumbsup:

Best regards

Jason


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15012 replies
  • May 10, 2021

Wahoo! Glad that worked, @Jason Hier . Let us know if there’s anything else we can help answer! :smiley:


Reply