Vertical align utilities Since v1.1.0+
Halfmoon comes with utility classes which can be used to set the vertical alignment of elements.
Commenting
|
New message!
Jane Doe just sent you a new message.
|
Halfmoon comes with utility classes which can be used to set the vertical alignment of elements.
The class names for the vertical alignment utilities come in the format: .align-{value}, where the {value} can be baseline, top, middle, bottom, text-top, or text-bottom.
<span class="align-baseline">baseline</span>
<span class="align-top">top</span>
<span class="align-middle">middle</span>
<span class="align-bottom">bottom</span>
<span class="align-text-top">text-top</span>
<span class="align-text-bottom">text-bottom</span>
Vertical alignment is often useful for aligning the content of table cells. The alignment can be set by adding the above classes to the table cell elements (<td>/<th>). An example of this is shown below:
baseline | top | middle | bottom | text-top | text-bottom |
<!-- Vertical alignment of table cells -->
<table class="table table-bordered h-100"> <!-- h-100 = height: 10rem (100px) -->
<tbody>
<tr>
<td class="align-baseline">baseline</td>
<td class="align-top">top</td>
<td class="align-middle">middle</td>
<td class="align-bottom">bottom</td>
<td class="align-text-top">text-top</td>
<td class="align-text-bottom">text-bottom</td>
</tr>
</tbody>
</table>
Our goal is to make Halfmoon the go-to framework for building dashboards and tools on the web. We are already working on things like a form validator, number input, datepicker, multi-select (think Select2 without jQuery), tabs component, JSX docs, and so much more. You can learn more in the project roadmap.
However, we need your help to grow. So if you truly believe in our goal, please consider supporting us through Patreon.
The following is the highest tier, with a maximum of 1 sponsor.
(Also seen at the top of the page)
The following is the normal tier, with a maximum of 10 sponsors.
AYCD
Automation Done Right
Sponsor (9 available)
Halfmoon needs your support! Become a sponsor to place an image and description of your product here. Click here
The following people have generously decided to support Halfmoon.
Become a backer on Patreon .