Support » Themes and Templates » Centering Buttons for Pique

  • Hello!

    I’m trying to get the contact us button centered on the home page, but it’s still aligning left. Here’s what I have:

    <a href="mailto:XXX" class="button" style="text-align:center">Contact Us</a>

    What am I doing wrong?

    Thanks!

Viewing 1 replies (of 1 total)
  • you will need to give the button a width and align it using margin. Text-align will only center text not the element, if you gave its parent text-align:center that would also work. Try

    style=”width:200px; display:block; margin:0 auto”

    Change width and margin accordingly ‘auto’ is what is centering the element.

Viewing 1 replies (of 1 total)
  • The topic ‘Centering Buttons for Pique’ is closed to new replies.