Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #283768

    threeoten
    Participant

    I used to be able to use the center-text class, or text-align: center; inline style to center a button. Or I would apply the center-text class to a container that the button was in, but it seems that Cornerstone did away with container elements. How can I center a button now? (that would be handy to have it as an option in the inspector when inspecting a button element.)

    Thanks

    #284052

    Christian
    Moderator

    Hey there,

    Center text class is available in Cornerstone. Please see this http://screencast.com/t/ao4DITwHiYR2 screencast for instruction.

    Hope that helps. 🙂

    #285319

    threeoten
    Participant

    So, I apply it to the column that the button is in? I have several elements in the same column though and I don’t want to apply center to all of it, just the button. Here’s the page:

    http://www.quailsprings.org/QS2/contact2/

    #285663

    Lely
    Moderator

    Hello There,

    Are you referring to Signup for NewsLetter Button? If yes, please add the following inline CSS:

    display: block;
      max-width: 290px;
      margin-left: auto;
      margin-right: auto;

    Hope this helps.

    #287105

    threeoten
    Participant

    Thanks. Also, I used to be able to set a button to display ‘block’ and then put it inside of a container to give it some margin. Now in cornerstone there are no containers and so when I attempt to apply left and right margin as an inline style on the button itself, it doesn’t work. And like before, the the button is in a column with other elements and I only want to apply the margin to the button and not the other elements in the same column.
    Thanks

    #287107

    CharliePryor
    Participant

    WAY WAY easier solution…. use a TEXT element, and then use the Shortcode generator to make the button. The button will be a shortcode in a text element. Then, just center the text inside the element like you normally would. BAM – Centered button.

    Charlie

    #287556

    Christian
    Moderator

    Thanks for sharing another solution, Charlie. 🙂

    #601252

    van Montfoort
    Participant

    Thanks Charlie. Worked for me.

    #601290

    Thai
    Moderator

    Glad it worked. If you need anything else, please let us know.