vertical-align
The vertical-align CSS property specifies the vertical alignment of an inline or table-cell box.
CLASS | DESCRIPTION |
---|---|
.nix-vertical-align_baseline | The element is aligned with the baseline of the parent |
.nix-vertical-align_top | The element is aligned with the top of the tallest element on the line |
.nix-vertical-align_middle | The element is placed in the middle of the parent element |
.nix-vertical-align_bottom | The element is aligned with the lowest element on the line |
.nix-vertical-align_text-top | The element is aligned with the top of the parent element's font |
.nix-vertical-align_text-bottom | The element is aligned with the bottom of the parent element's font |
<p>
<img src="icon.jpg" class="nix-vertical-align__middle" /> Lorem ipsum dolor sit ammet
</p>
xxxxxxxxxx
1
<p>
2
<img src="icon.jpg" class="nix-vertical-align__middle" /> Lorem ipsum dolor sit ammet
3
</p>