::first-line
W3C CSS Snapshot 2026
Block ထဲမှာ ပေါ်နေတဲ့ ပထမစာကြောင်းကို style ပေးပါတယ်။ တစ်ကြောင်းထဲ ဆံ့တဲ့ စာလုံးရေက အကျယ်ပေါ် မူတည်ပါတယ်။
Code စမ်းလို့ရတဲ့ သင်ခန်းစာ ဖွင့်ရန်
ဒီစာမျက်နှာမှာ
ရေးပုံနဲ့ သုံးလို့ရတဲ့ တန်ဖိုးများ
| တန်ဖိုး သို့မဟုတ် ရေးပုံ | အလုပ်လုပ်ပုံ |
|---|---|
p::first-line | လိုင်းခွဲပြီးတဲ့နောက် ပထမဆုံးစာကြောင်းကို ရွေးပါတယ်။ |
နမူနာကို စမ်းကြည့်ပါ
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>::first-line</title>
<style>
p { max-width: 18ch; }
p::first-line { color: teal; }
</style>
</head>
<body>
<p>Bring your notebook to the workshop and check in at the front desk before the session starts.</p>
</body>
</html>
စမ်းကြည့်ရင် ဘာဖြစ်မလဲ ပထမစာကြောင်းထဲက စကားလုံးတွေပဲ စိမ်းပြာရောင် ဖြစ်ပါမယ်။