Search results
Change the alignment of elements with the vertical-alignment utilities. Please note that vertical-align only affects inline, inline-block, inline-table, and table cell elements. Choose from .align-baseline, .align-top, .align-middle, .align-bottom, .align-text-bottom, and .align-text-top as needed. With inline elements:
- Vertical Align
Change the alignment of elements with the vertical-alignment...
- Vertical Align
Change the alignment of elements with the vertical-alignment utilities. Please note that vertical-align only affects inline, inline-block, inline-table, and table cell elements. Choose from .align-baseline, .align-top, .align-middle, .align-bottom, .align-text-bottom, and .align-text-top as needed.
The format is {property}-{position}. Where property is one of: top - for the vertical top position. start - for the horizontal left position (in LTR) bottom - for the vertical bottom position. end - for the horizontal right position (in LTR) Where position is one of: 0 - for 0 edge position. 50 - for 50% edge position.
You can align text at bottom as follows: <div style="height:55px !important; position: relative;"> <span class="align-bottom" style="position: absolute;bottom:0;"> This text should align to bottom, closer to the line </span> </div> <div class="border-top"> Other content </div>
Bootstrap 5 vertical alignment utilities position elements on the y-axis. You can center your content with it or align it to the top or the bottom of the viewport.
Choose from vertical-align= baseline, top, middle, bottom, text-bottom, and text-top as needed. To vertically center non-inline content (like <div> s and more), use our flex box utilities . With inline elements: baseline top middle bottom text-top text-bottom. vue.
Use align-text-bottom to align the bottom of an element with the bottom of the parent element’s font. The quick brown fox jumps over the lazy dog. Easily change the vertical alignment of inline, inline-block, inline-table, and table cell elements.