Vetia text-orientation
Vetia text-orientation vendos orientimin
e simboleve në tekstin vertikal, d.m.th.
atij që i është caktuar vetia writing-mode
me vlerat vertical-lr ose
vertical-rl. Vetia merr dy vlera:
mixed (simbolet rrotullohen për 90°
në drejtim të akrepave të orës) ose upright (simbolet vendosen
nën njëri-tjetrin).
Sintaksa
selektor {
text-orientation: mixed ose upright;
}
Shembull
Le t'i japim të gjitha simboleve të tekstit vertikal
kthim për 90°:
<p>
Text
</p>
body {
width: 200px;
height: 100px;
}
p {
text-orientation: mixed;
background: #467CBC;
color: white;
padding: 10px;
font-size: 2rem;
writing-mode: vertical-lr;
}
:
Shembull
Le t'i vendosim të gjitha simbolet e tekstit vertikal nën njëri-tjetrin:
<p>
Text
</p>
body {
width: 200px;
height: 100px;
}
p {
text-orientation: upright;
background: #467CBC;
color: white;
padding: 10px;
font-size: 2rem;
writing-mode: vertical-lr;
}
:
Shihni gjithashtu
-
vetia
writing-mode,
e cila vendos drejtimin e tekstit -
vetia
font-kerning,
e cila vendos kern-ingun e shkronjave