Tagged: x
-
AuthorPosts
-
November 17, 2016 at 8:44 am #1261052
keith sParticipantI 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?
*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.
November 17, 2016 at 10:09 am #1261193
RupokMemberHi 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!
November 17, 2016 at 3:41 pm #1261610
keith sParticipantThe 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.
November 17, 2016 at 6:15 pm #1261749
JadeModeratorHI 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1261052 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
