in English
વર્ટિકલ ગોઠવણી
ઇનલાઇન, ઇનલાઇન-બ્લોક, ઇનલાઇન-ટેબલ અને ટેબલ સેલ તત્વોની ઊભી ગોઠવણી સરળતાથી બદલો.
vertical-alignmentઉપયોગિતાઓ સાથે તત્વોની ગોઠવણી બદલો . મહેરબાની કરીને નોંધ કરો કે વર્ટિકલ-એલાઈન માત્ર ઇનલાઇન, ઇનલાઇન-બ્લોક, ઇનલાઇન-ટેબલ અને ટેબલ સેલ તત્વોને અસર કરે છે.
.align-baseline, .align-top, , .align-middle, .align-bottom, .align-text-bottom, અને જરૂર મુજબ પસંદ કરો .align-text-top.
બિન-ઇનલાઇન સામગ્રીને ઊભી રીતે કેન્દ્રમાં રાખવા માટે (જેમ કે <div>s અને વધુ), અમારી ફ્લેક્સ બોક્સ ઉપયોગિતાઓનો ઉપયોગ કરો .
ઇનલાઇન તત્વો સાથે:
બેઝલાઈન
ટોપ
મિડલ
બોટમ
ટેક્સ્ટ-ટોપ
ટેક્સ્ટ-બોટમ
<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>
ટેબલ કોષો સાથે:
| આધારરેખા | ટોચ | મધ્ય | નીચે | ટેક્સ્ટ-ટોપ | ટેક્સ્ટ-નીચે |
<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>
સસ
ઉપયોગિતાઓ API
વર્ટિકલ એલાઈન યુટિલિટીઝ અમારી યુટિલિટીઝ API માં ઘોષિત કરવામાં આવી છે scss/_utilities.scss. ઉપયોગિતા API નો ઉપયોગ કેવી રીતે કરવો તે જાણો.
"align": (
property: vertical-align,
class: align,
values: baseline top middle bottom text-bottom text-top
),