in English
Labɛnni jɔlen
Yɛlɛma nɔgɔya la inline, inline-block, inline-table ani table cell elements ka ɲɔgɔndan jɔlen na.
Yɛlɛma don fɛnw ni vertical-alignment
nafalanw ka ɲɔgɔndɛmɛ na. Aw k’a kɔlɔsi ko vertical-align bɛ nɔ bila inline, inline-block, inline-table ani table cell elements dɔrɔn de la.
Aw bɛ sugandi ka bɔ .align-baseline
, .align-top
, .align-middle
, .align-bottom
, .align-text-bottom
, ani .align-text-top
i n’a fɔ aw mago bɛ cogo min na.
Walasa ka kɔnɔkow cɛmancɛ jɔlen na minnu tɛ inline ye (i n’a fɔ <div>
s ani dɔ wɛrɛw), baara kɛ ni an ka flex box utilities ye .
Ni inline elements ye:
basigilen
sanfɛ
cɛmancɛ
duguma
sɛbɛnni-sanfɛ
sɛbɛnni-jukɔrɔ
<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>
Ni tabali selilɛriw ye:
basigilen | san fɛ | cɛmancɛ | jukɔrɔla | sɛbɛnni-sanfɛ | sɛbɛnni-kɔnɔ |
<table style="height: 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>
Sass ye
Nafamafɛnw API
Vertical align utilities bɛ fɔ an ka utilities API kɔnɔ san scss/_utilities.scss
. Aw ye baara kɛcogo dɔn ni utilities API ye.
"align": (
property: vertical-align,
class: align,
values: baseline top middle bottom text-bottom text-top
),