Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #91090
    jakeab
    Participant

    Hi there

    I’m trying to center a button on my site, but no matter what I do it always aligns left. I’ve tried adding in <center> tags in the text part of the page, using wordpress’ built in center tag

    Code I’m using for the button

    <form action="http://website.com/"><input type="submit" value="Download" />

    #91133
    Mahesh
    Participant

    @jakeab: Please post in your site URL.

    Regards,
    Mahesh

    #91137
    jakeab
    Participant

    Hi Mahesh, the site is currently on lockdown due to confidential data being stored on it prepping for a release at a later date. I have however fixed this now. Moved the center tags directly around the button code i.e

    <center><form action="http://website.com"><input type="submit" value="Download" /></center>

    And this seems to have resolved the problem

    #91217
    Mahesh
    Participant

    @jakeab: Its a bit difficult to provide the solution to the issue without checking the HTML. But I’m glad that <center> tag resolved the problem and fixed the issue by yourself. Have a nice day.

    Regards,
    Mahesh

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Centering buttons’ is closed to new replies.