[Support request] center align a button

Home Forums Support center align a button

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #459996
    Jamie

    Hi I’ve used the below css and code to add a button to a page:

    css: `.button.sun-flower,
    .button.sun-flower:visited {
    background: #0ebeea;
    color:#FFF;
    }

    .button.sun-flower:hover,
    .button.sun-flower:active {
    background: #0ebeea;
    color:#FFF;`

    html: <a href="URL FOR YOUR BUTTON">Click here to order your Itinerary!</a>

    What do i add to either of these to make it so the button is centered?

    Thanks!

    Jamie

    GeneratePress 2.0.1
    #460067
    Tom
    Lead Developer
    Lead Developer

    You can put it inside a centered paragraph:

    <p style="text-align: center"><a class="button" href="#">Your button</a></p>

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.