Contact us form using html and css
Source code HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="contactus.css">
</head>
<body>
<div class="formlayout">
<form method="POST" action="ab.html">
<h2>
Contact Us
</h2>
<label for="name">YOUR NAME</label>
<br>
<input class="first" type="text" id="name" placeholder="First Name" required>
<input class="last" type="text" id="name" placeholder="Last Name" required>
<br>
<br>
<label for="email">YOUR E-MAIL</label>
<br>
<input type="email" name="email" id="email" required placeholder="eg. example@email.com">
<br>
<br>
<label for="phonenumber">PHONE NUMBER</label>
<br>
<input type="number" id="phonenumber" placeholder="eg. 03XX-XXXXXXX" required>
<br>
<br>
<label for="message">MESSAGE</label>
<br>
<input type="text" required id="message" placeholder="Please enter your message here">
<br>
<br>
<button class="formsubmitbutton">
submit
</button>
</form>
</div>
<footer>
<p>
Created by AB Digital Marketers & Web Developers <br>
<p class="coral">
abdevelopersofficial@gmail.com & itsasadali@protonmail.ch
</p>
</p>
</footer>
</body>
</html>
SOURCE CODE CSS
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: coral;
background-repeat: no-repeat;
background-size: cover;
}
.formlayout {
width: 400px;
height: 540px;
background-color: white;
border-radius: 5px;
opacity: 90%;
position: absolute;
left: 33%;
top: 10%;
}
form {
padding-left: 8%;
padding-top: 1%;
}
input {
font-size: 13px;
width: 314px;
height: 35px;
padding-left: 12px;
border: 1px solid black;
border-radius: 0px;
opacity: 80%;
}
.first, .last {
width: 146px;
}
label {
font-size: 11px;
}
.formsubmitbutton{
padding: 15px 40px;
background: #000;
border:0;
color: #fff;
text-transform: uppercase;
font-family: helvetica;
font-size: 12px;
letter-spacing: 3px;
position: relative;
transition: all .4s cubic-bezier(0.645, 0.045, 0.355, 1);
cursor: pointer;
display: block;
margin: 40px 95px;
}
button::after,
button::before{
content: "";
position: absolute;
top: 50%;
right: 0px;
transform: translateY(-50%);
opacity: 0;
transition: all .4s cubic-bezier(0.645, 0.045, 0.355, 1);
}
button::after{
width: 30px;
height: 1px;
background: white;
transform: translateX(-3px);
margin-top: 0px;
}
button::before{
content: "";
transform: rotate(-135deg) translateX(50%);
width: 11px;
height: 11px;
background: transparent;
border-left: 1px solid white;
border-bottom: 1px solid white;
margin-top: -1px;
}
button:hover{
padding: 15px 60px 15px 20px;
}
button:hover::after,
button:hover::before{
opacity: 1;
right: 15px;
}
footer {
background-color: #555;
color: #fff;
font-size: 14px;
bottom: 0;
position: fixed;
left: 0;
right: 0;
text-align: center;
}
.coral {
color: coral;
font-size: 18px;
}
Awesome
ReplyDeleteIt is fabulous..
ReplyDelete