Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1261052
    keith s
    Participant

    I am drawing a blank after trying everything I know from a traditional formatting perspective. I am trying to vertically align text in the middle or absmiddle of a button. I am using vertical-align:middle; and vertical-align:absmiddle; but to no avail. Can you please take a quick look and tell me what I am missing?

    http://www.edgertonksdev.org

    *I also attached a screenshot of the particular area. I just want the single line text to display in the middle of the button so they look better next to a button with two lines of text.

    Thank you so much.

    #1261193
    Rupok
    Member

    Hi there,

    Thanks for writing in! It seems you have added a min-height that’s causing the issue :

    .x-btn.x-btn-mini {
      font-size: 13px;
      min-height: 48px;
      padding: 0.385em 0.923em 0.538em;
    }

    You can just set the padding to get proper spacing around :

    .x-btn.x-btn-mini {
      font-size: 13px;
      padding: 1em;
    }

    Cheers!

    #1261610
    keith s
    Participant

    The min-height is so all the buttons will be the same height. See the attached screenshot from the mockup. This is what I am trying to achieve. The css you sent does not make each button the same height.

    Thanks again for your assistance.

    #1261749
    Jade
    Moderator

    HI Keith,

    Please try this code:

    
    .x-btn.x-btn-mini {
        font-size: 13px;
        padding: 1em;
        height: 70px;
        display: table-cell;
        vertical-align: middle;
    }

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1261052 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>