လုပ်နည်း - အိုင်ကွန်များဖြင့် ဖောင်လုပ်ပါ။
အိုင်ကွန်များဖြင့် ဖောင်ဖွဲ့နည်းကို လေ့လာပါ။
မှတ်ပုံတင်ပါ။
Icon Form ဖန်တီးနည်း
အဆင့် 1) HTML ကိုထည့်ပါ
ထည့်သွင်းမှုကို လုပ်ဆောင်ရန် <form> ဒြပ်စင်ကို အသုံးပြုပါ။ ဤအကြောင်းကို ကျွန်ုပ်တို့၏ PHP သင်ခန်းစာ တွင် သင်ပိုမိုလေ့လာနိုင်ပါသည် ။ ထို့နောက် အကွက်တစ်ခုစီအတွက် ထည့်သွင်းမှုများကို ထည့်ပါ-
ဥပမာ
<form action="/action_page.php">
<h2>Register Form</h2>
<div class="input-container">
<i class="fa fa-user
icon"></i>
<input class="input-field" type="text"
placeholder="Username" name="usrnm">
</div>
<div
class="input-container">
<i class="fa fa-envelope
icon"></i>
<input class="input-field" type="text"
placeholder="Email" name="email">
</div>
<div
class="input-container">
<i class="fa fa-key
icon"></i>
<input class="input-field" type="password"
placeholder="Password" name="psw">
</div>
<button
type="submit" class="btn">Register</button>
</form>
အဆင့် 2) CSS ကိုထည့်ပါ
ဥပမာ
* {box-sizing: border-box;}
/* Style the input container */
.input-container {
display: flex;
width: 100%;
margin-bottom: 15px;
}
/* Style the form
icons */
.icon {
padding:
10px;
background: dodgerblue;
color: white;
min-width: 50px;
text-align: center;
}
/* Style the input
fields */
.input-field {
width: 100%;
padding:
10px;
outline: none;
}
.input-field:focus {
border: 2px solid
dodgerblue;
}
/* Set a style for the submit button */
.btn {
background-color: dodgerblue;
color: white;
padding: 15px
20px;
border: none;
cursor: pointer;
width:
100%;
opacity: 0.9;
}
.btn:hover {
opacity: 1;
}
အကြံပြုချက်- HTML Form အကြောင်းပိုမိုလေ့လာရန် ကျွန်ုပ်တို့၏ HTML Form Tutorial သို့ သွားပါ ။
အကြံပြုချက်- ဖောင် ပုံစံဒြပ်စင်များကို စတိုင်လ်ပုံစံလုပ်နည်းကို ပိုမိုလေ့လာရန် ကျွန်ုပ်တို့၏ CSS Form Tutorial သို့ သွား ပါ။
အကြံပြုချက်- ပြောင်းလွယ်ပြင်လွယ်ရှိသော အကွက်အပြင်အဆင် module အကြောင်း ပိုမိုလေ့လာရန် ကျွန်ုပ်တို့၏ CSS Flexbox ကျူတိုရီရယ် သို့ သွားပါ ။