ရှာဖွေစက်တင်ချက် ကို ဖွဲ့စည်းပုံ
ရှာဖွေစက်တင်ချက် ကို CSS ဖြင့် ဖွဲ့စည်းပြီ
လျှပ်ရောင်းရှိ
အကြားအာရုံကြောင်း အရောက်အရှည် အတွင်းရှိပြီ
ရှာဖွေစက်တင်ချက် မူကြမ်းများ
ပထမပိုင်း - သိပ်သုံး HTML ပြီးပြီ
<!-- အကြောင်းကြားအက်အိုင်အေ တိုက်ခိုက်ရန် --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- ပေါင်းစုပေါင်း --> <form class="example" action="action_page.php"> <input type="text" placeholder="Search.." name="search"> <button type="submit"><i class="fa fa-search"></i></button> </form>
ဒုတိယပိုင်း - သိပ်သုံး CSS ပြီးပြီ
* { box-sizing: border-box; } /* ရှာဖွေချက် လုပ်ငန်းအုပ်ချုပ်ခြင်း ဖော်ပြပြီ */ form.example input[type=text] { padding: 10px; font-size: 17px; border: 1px solid grey; float: left; width: 80%; background: #f1f1f1; } /* တော်ဝင်ရန် စက်တင်ချက် ဖော်ပြပြီ */ form.example button { float: left; width: 20%; padding: 10px; background: #2196F3; color: white; font-size: 17px; border: 1px solid grey; border-left: none; /* ခုံးကြောင်းနှစ်ခုစလုံးကို ကာကွယ်ပြီ */ cursor: pointer; } form.example button:hover { background: #0b7dda; } /* တိုးချိန်ကို ဖျက်သိမ်းပြီ */ form.example::after { content: ""; clear: both; display: table; }