ပုံပေါ်တွင် ပေါင်းစားအုပ်စု ပြုလုပ်ခြင်း
ပုံပေါ်တွင် ပေါင်းစားအုပ်စု ပြုလုပ်ခြင်း အကြောင်းကြားပြီး
ပုံပေါ်တွင် ပေါင်းစားအုပ်စု
ပုံပေါ်တွင် ပေါင်းစားသည့် ပေါင်းစားအုပ်စု ပြုလုပ်ခြင်း
ပထမပိုင်း - ဟောင်း HTML ထပ်ပေးပါ
<div class="bg-img"> <form action="/action_page.php" class="container"> <h1>Login</h1> <label for="email"><b>Email</b></label> <input type="text" placeholder="Enter Email" name="email" required> <label for="psw"><b>Password</b></label> <input type="password" placeholder="Enter Password" name="psw" required> <button type="submit" class="btn">Login</button> </form> </div>
ဆုံးဖြတ် - ပုံစံ CSS ပြုစုပ်စာကြောင်း ပြုပြင့်ပြီ
body, html { height: 100%; } * { box-sizing: border-box; } .bg-img { /* အသုံးပြုသော ပုံ */ background-image: url("img_nature.jpg"); /* ပုံမျက်နှာ အမြင့် ပြုစုပ် */ min-height: 380px; /* ပုံမျက်နှာကို ကြားချုပ်ပြီး ခန့်မှန်းထား */ background-position: center; background-repeat: no-repeat; background-size: cover; position: relative; } /* ပြုစုပ်စာရင်း အပြည့်အဝါ ဖြည့်စွက် */ .container { position: absolute; right: 0; margin: 20px; max-width: 300px; padding: 16px; background-color: white; } /* လုံးအားစိုက် တင်ပြီး ဖြည့်စွက်ပိုင်း */ input[type=text], input[type=password] { width: 100%; padding: 15px; margin: 5px 0 22px 0; border: none; background: #f1f1f1; } input[type=text]:focus, input[type=password]:focus { background-color: #ddd; outline: none; } /* ဝေးကွက်ပြီး တင်ပြေးစာကြောင်း ဖြည့်စွက် */ .btn { background-color: #04AA6D; color: white; padding: 16px 20px; border: none; cursor: pointer; width: 100%; opacity: 0.9; } .btn:hover { opacity: 1; }