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

    rebecalvarez
    Participant

    Hi I am having trouble centering a form. If I do center-text it centers the titles too! I just want to center the block.

    Thanks for your help!

    #193123

    rebecalvarez
    Participant

    I need to center a text element without centering the text. just the element.

    Thanks!

    #193124

    rebecalvarez
    Participant
    This reply has been marked as private.
    #193204

    Christian
    Moderator

    Hey Rebeca,

    Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thanks.

    #193615

    rebecalvarez
    Participant

    Hey thanks!

    I would like to center a form. But I don’t want to center all the elements inside.

    for example if I use a table that has text in it and I center the table, the text remains untouched or with the same format.

    I don’t seem to be able to center a “content band” or “column” without altering the content.

    #194301

    Zeshan
    Member

    Hi there,

    In that case, you can use maximum width with auto margin left and right. So your CSS should look like:

    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
    

    This should go in the Style field of the section you want to center, that is, in your case a content band (see: http://prntscr.com/5y2kw7).

    Hope this helps. 🙂

    Thank you.

    #194440

    rebecalvarez
    Participant

    Thanks for your help!

    Would this be responsive?

    #194553

    Zeshan
    Member

    Hi there,

    Yes, as we have used CSS max-width property instead of simple width property, it should be responsive on all devices 🙂

    Cheers!