လုပ်နည်း - အသိပေးချက်ခလုတ်များ
CSS ဖြင့် အသိပေးချက်ခလုတ်များ ဖန်တီးနည်းကို လေ့လာပါ။
ဝင်စာ ၃
အကြောင်းကြားချက်ခလုတ်ကိုဖန်တီးနည်း
အဆင့် 1) HTML ကိုထည့်ပါ
ဥပမာ
<a href="#" class="notification">
<span>Inbox</span>
<span
class="badge">3</span>
</a>
အဆင့် 2) CSS ကိုထည့်ပါ
ဥပမာ
.notification {
background-color: #555;
color: white;
text-decoration: none;
padding: 15px 26px;
position:
relative;
display: inline-block;
border-radius: 2px;
}
.notification:hover
{
background: red;
}
.notification .badge {
position:
absolute;
top: -10px;
right: -10px;
padding: 5px
10px;
border-radius: 50%;
background: red;
color: white;
}
ခလုတ်များကိုစတိုင်လ်ပုံစံလုပ်နည်းအကြောင်းပိုမိုလေ့လာရန် ကျွန်ုပ်တို့၏ CSS Buttons Tutorial သို့ သွား ပါ။