::first-letter
W3C CSS Snapshot 2026
Block ထဲက ပထမစာကြောင်းရဲ့ ပထမစာလုံးကို style ပေးပါတယ်။
Code စမ်းလို့ရတဲ့ သင်ခန်းစာ ဖွင့်ရန်
ဒီစာမျက်နှာမှာ
ရေးပုံနဲ့ သုံးလို့ရတဲ့ တန်ဖိုးများ
| တန်ဖိုး သို့မဟုတ် ရေးပုံ | အလုပ်လုပ်ပုံ |
|---|---|
p::first-letter | ပထမစာလုံးကို ရွေးပြီး အနားက သတ်ပုံအမှတ်အသား ပါလာနိုင်ပါတယ်။ |
နမူနာကို စမ်းကြည့်ပါ
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>::first-letter</title>
<style>
p::first-letter { color: teal; font-size: 1.7em; }
</style>
</head>
<body>
<p class="notice">Registration opens Monday.</p>
<p id="location">Meet in Room 2.</p>
<h2>Workshop</h2>
</body>
</html>
စမ်းကြည့်ရင် ဘာဖြစ်မလဲ စာပိုဒ်တစ်ခုစီရဲ့ အစစာလုံးက ကြီးပြီး စိမ်းပြာရောင် ဖြစ်ပါမယ်။