Center Button in Element

pending (5 posts) (5 voices)

  1. wykdfantasy
    Member

    I would like to center the buttons on my page in the current element. I have tried a few things to get it to center relevant to the current div but no luck. On my homepage you will see three buttons. How can I get them to center inside the 1/3 divs?
    http://www.ingenuityconsultants.com

    Posted 1 year ago #
  2. Try this one:

    [one_third]

    <p>Some text...</p>
    <center>[button link="#"]Read More[/button]</center>

    [/one_third]

    BR,
    CsanyiGroup
    http://electrical-engineering-portal.com/

    Posted 1 year ago #
  3. Dorian
    Support

    Thanks csanyigroup for the input!

    wykdfantasy,

    That's the way to do it, but I'd recommend using <div align="center"> instead of <center> to make it more web friendly.

    [one_third]
    
    <p>Some text...</p>
    <div align="center">[button link="#"]Read More[/button]</div>
    
    [/one_third]

    Cheers,
    Dorian

    Posted 1 year ago #
  4. tigga76
    Member

    Is it possible to center elements in a widget? I've tried <div align="center"> and it doesn't seem to work. Do I need to edit the code in the plugin itself. I'm trying to center the YouTube widget in footer #5 in Infocus. Thanks.

    Posted 1 year ago #
  5. Elliott
    Support

    Hello tigga76,

    To center something you would do this, style = 'text-align: center;'.

    Since you want a specific section centered then send us a link to your site so we can grab it's class for you to use.

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme