CSS Outline Offset
CSS Outline Offset
outline-offset
ပိုင်ဆိုင်မှုသည် ကောက်ကြောင်းတစ်ခုနှင့် ဒြပ်စင်တစ်ခု၏ အစွန်း/ဘောင်ကြားတွင် နေရာလွတ်ကို ပေါင်းထည့်သည် ။ ဒြပ်စင်တစ်ခုနှင့် ၎င်း၏ကောက်ကြောင်းကြားရှိ နေရာလွတ်သည် ပွင့်လင်းသည်။
အောက်ဖော်ပြပါ ဥပမာသည် နယ်နိမိတ်အစွန်းအပြင်ဘက်ရှိ 15px မျဉ်းကြောင်းကို သတ်မှတ်သည်-
ဤစာပိုဒ်သည် နယ်နိမိတ်အစွန်းအပြင်ဘက်တွင် အကြမ်းဖျင်း 15px ရှိသည်။
ဥပမာ
p {
margin: 30px;
border: 1px solid black;
outline:
1px solid red;
outline-offset: 15px;
}
အောက်ဖော်ပြပါ ဥပမာသည် ဒြပ်စင်တစ်ခုနှင့် ၎င်း၏ကောက်ကြောင်းကြားရှိ နေရာလွတ်သည် ပွင့်လင်းကြောင်း ပြသသည်-
ဤစာပိုဒ်သည် နယ်နိမိတ်အစွန်းအပြင်ဘက်တွင် 15px အကောက်ပါရှိသည်။
ဥပမာ
p {
margin: 30px;
background:
yellow;
border: 1px solid black;
outline:
1px solid red;
outline-offset: 15px;
}
CSS Outline Properties အားလုံး
Property | Description |
---|---|
outline | A shorthand property for setting outline-width, outline-style, and outline-color in one declaration |
outline-color | Sets the color of an outline |
outline-offset | Specifies the space between an outline and the edge or border of an element |
outline-style | Sets the style of an outline |
outline-width | Sets the width of an outline |