الصفحة الرئيسية
تحميل الكود
تغيير الألوان
تغيير العرض
تغيير حجم العرض
تشغيل الكود
<!DOCTYPE html> <html> <head> <style> * { margin: 0; padding: 0; box-sizing: border-box; } form { font-family: Arial, Helvetica, sans-serif; border-radius: 10px; padding: 10px 20px 30px 20px; margin: 20px 15px; background: #f1f1f1; border: 1px solid #ddd; } form label { margin-top: 20px; margin-bottom: 10px; display: block; text-align: left; font-size:16px; line-height: 20px; } form input[type=text], form input[type=password] { width: 100%; padding: 10px 15px 10px 45px; margin: 0 0 8px 0; border: 1px solid #d4d4d4; font-size: 15px; border-radius: 6px; text-align: left; direction: ltr; background: white; background-position: 12px 11px; background-repeat: no-repeat; background-size: 20px 20px; } form input[type=text] { background-image: url('/tutorials/css/forms/user.png'); } form input[type=password] { background-image: url('/tutorials/css/forms/pass.png'); } form button { color: white; background-color: #0d6efd; border-color: #0d6efd; padding: 16px 20px; border: none; cursor: pointer; width: 100%; font-size: 16px; border-radius: 6px; margin-top: 25px; transition: 0.4s; } form button:hover { opacity: 0.8; } form .avatar-container { text-align: center; margin: 16px 0 0 0; } </style> </head> <body> <form> <div class="avatar-container"> <img src="/tutorials/css/forms/avatar.png" alt="Avatar"> </div> <label for="email">Email</label> <input type="text" id="email" placeholder="Enter Email"> <label for="password">Password</label> <input type="password" id="password" placeholder="Enter Password"> <button type="button">Login</button> </form> </body> </html>