Support » Themes and Templates » Help with centering a button

  • Hello,

    I am very new to coding and I am struggling with getting a button centered on my homepage. Here is the code for the button, any suggestions as to how I can center it? I have tried: <div style=”text-align:center”>

    <?php echo thanks_button(‘Thanks’, true); ?>


Viewing 1 replies (of 1 total)
  • Hello
    Try not to use in-line styles when ever you can… Try something like this

    <div class="center-align">
    <?php echo thanks_button('Thanks', true); ?>

    and in your style.css add this

    .center-align{display:block;margin:0 auto}

    If that doesn’t help, link to your page with the problem will.

Viewing 1 replies (of 1 total)
  • The topic ‘Help with centering a button’ is closed to new replies.