20 Ekim 2020 Salı

Hmtl

<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Bayram</title>
</head>
<body onload="deger()">
    <div class="container">
        <form id="frm" method="POST" action="#">
            <label>Username</label>
            <input type="text" id="name" name="name" />
            <label>Lastname</label>
            <input type="text" id="lastName" name="lastName" /
            <label>Email box</label>
            <input type="email" id="email" name="email" />
            <label id="wrt">Write box</label>
            <textarea type="text" id="textArea" name="Text">Write...</textarea>
            <input type="submit" name="submit" id="btn" />
        </form>
    </div>
</body>
</html>
/* Css ayarları */
* {
    box-sizing: border-box;
}
body {
    background-image: url(canyon.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    font-family: "Times New Roman", Times, serif;
}
.container {
    position: absolute;
    top: 25%;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    text-align: center;
    justify-content: center;
}
#frm {
    border: 1px solid gray;
    box-shadow: 0 15px 15px 0 rgba(0, 0, 0, 0.6);
    background-color: #cc3000;
    width: 400px;
    height: 380px;
    padding-top: 8px;
}
label {
    color: white;
    font-size: 20px;
    display: block;
    margin-left: -290px;
    padding: 5px;
}
input[type="text"] {
    height: 30px;
    width: 370px;
    font-size: 15px;
}
input[type="text"]:focus {
    background-color: #66ccff;
    font-weight: bold;
    font-size: 25px;
}
input[type="email"] {
    height: 30px;
    width: 370px;
    font-size: 15px;
}
input[type="email"]:focus {
    background-color: #66ccff;
    font-weight: bold;
    font-size: 25px
}
#textArea {
    height: 90px;
    width: 370px;
}
#textArea:focus {
    font-weight: bold;
    font-size: 15px;
}
#btn {
    background-color: #999999;
    box-shadow: 0 15px 15px 0 rgba(0, 0, 0, 0.6);
    font-size: 20px;
    width: 150px;
    height: 30px;
    border: none;
    margin: 5px;
    box-shadow: 0 15px 15px 0 rgba(0, 0, 0, 0.3);
}
#btn:hover {
    background-color: white;
    font-weight: bold;
}

Hiç yorum yok:

Yorum Gönder