text-orientation အချက်များ
text-orientation အချက်များသည် ဒေါင်လိုက်စာသား၏ စာလုံးများ၏ ဦးတည်ချက်ကို သတ်မှတ်ပေးသည်၊
ဆိုလိုသည်မှာ writing-mode အချက်များကို
vertical-lr သို့မဟုတ်
vertical-rl တန်ဖိုးများဖြင့် သတ်မှတ်ထားသော စာသားဖြစ်သည်။ ၎င်းအချက်များသည် တန်ဖိုးနှစ်ခုကို လက်ခံသည်-
mixed (စာလုံးများကို 90°
နာရီလက်တစ်ရာ ရွေ့လျားသည့် ဘက်သို့ လှည့်ပေးသည်) သို့မဟုတ် upright (စာလုံးများကို
တစ်ခုနှင့်တစ်ခု အောက်ခြေတွင် ထားရှိသည်)။
Syntax
selector {
text-orientation: mixed or upright;
}
ဥပမာ
ဒေါင်လိုက်စာသားရှိ စာလုံးအားလုံးကို
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;
}
:
ဥပမာ
ဒေါင်လိုက်စာသားရှိ စာလုံးအားလုံးကို တစ်ခုနှင့်တစ်ခု အောက်ခြေတွင် ထားရှိကြပါစို့-
<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;
}
:
ဆက်လက်လေ့လာရန်
-
writing-modeအချက်များ,
၎င်းသည် စာသား၏ ဦးတည်ရာကို သတ်မှတ်ပေးသည် -
font-kerningအချက်များ,
၎င်းသည် ဖောင့်အတွက် kerning ကို သတ်မှတ်ပေးသည်