Fabulous Code For Contact Message Programs
HTML Code:-
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Contact Message</title>
</head>
<body>
<div class="container">
<h2>Contact Message</h2>
<form>
<div class="input-box">
<input type="text" placeholder="Enter Your Name" required>
</div>
<div class="input-box">
<input type="email" placeholder="Enter a Valid E-mail" required>
</div>
<div class="input-box">
<input type="text" placeholder="Enter Subject" required>
</div>
<div class="input-box">
<textarea placeholder="Enter Message" required></textarea>
</div>
<div class="input-box input-btn">
<button>Send Message</button>
</div>
</form>
</div>
</body>
</html>
CSS Code:-
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Palatino Linotype';
}
body {
width: 100%;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: url(https://cdn.pixabay.com/photo/2014/09/14/18/04/dandelion-445228_960_720.jpg);
padding: 20px;
}
.container {
background: transparent;
padding: 2rem;
border-radius: 5px;
box-shadow: 0 0 5px rgba(0,0,0,.5);
border-top: 4px solid royalblue;
width: 550px;
}
.container h2 {
color: blue;
font-size: 3.5rem;
text-align: center;
margin-bottom: 20px;
}
.container .input-box {
width: 100%;
min-height: 40px;
margin-bottom: 20px;
}
.container .input-box input, .container .input-box textarea {
width: 100%;
height: 100%;
background: #FFF;
border: none;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
padding: 10px;
border-radius: 30px;
font-size: 1rem;
transition: .3s;
}
.container .input-box textarea {
min-height: 150px;
padding-top: 15px;
padding-left: 15px;
}
.container .input-box input:hover, .container .input-box input:focus, .container .input-box input:valid, .container .input-box textarea:hover, .container .input-box textarea:focus, .container .input-box textarea:valid {
box-shadow: 0 0 10px rgba(0,0,0,0.1),
0 0 20px rgba(0,0,0,0.1);
}
.container .input-btn {
width: 100%;
display: flex;
justify-content: center;
}
.container .input-btn button {
padding: .7rem 2rem;
border: none;
background: transparent;
font-size: 2rem;
text-align: center;
background: linear-gradient(230deg, rgba(113,16,88,1) 0%, rgba(115,4,41,1) 40%, rgba(129,4,108,1) 80%, rgba(2,7,183,1) 100%);
background-size: 400%;
color: #FFF;
animation: animatebtn 8s infinite;
cursor: pointer;
border-radius: 30px;
box-shadow: 5px 5px 10px tomato;
}
@keyframes animatebtn {
0% {
background-position: 400%;
}
100% {
background-position: 100%;
}
}
Output Display
41 Comments
Wowwww
ReplyDeleteVery
Nice
Wonderful
Great
ReplyDeleteAwesome
ReplyDeleteAttractive
ReplyDeleteReally ows
ReplyDeleteExcellent
ReplyDeleteVery Nice
ReplyDeleteMind Blowing
ReplyDeleteExcellent
ReplyDeleteVery Nice
ReplyDeleteNicely done
ReplyDeleteAwesome
ReplyDeletesuperb
ReplyDeleteWonderful
ReplyDeletePerfect
ReplyDeletePerfect
ReplyDeletePerfect
ReplyDeleteInteresting
ReplyDeleteWonderful
ReplyDeleteWonderful
ReplyDeleteExcellent
ReplyDeleteWonderful
ReplyDeleteSuperb
ReplyDeletePerfect
ReplyDeletePerfect
ReplyDeleteWonderful
ReplyDeletePerfect
ReplyDeletePerfect
ReplyDeleteWonderful Nice
ReplyDeleteKallu nice
ReplyDeleteFabulous idea
ReplyDeleteFabulous idea
ReplyDeleteFantastic and wonderful
ReplyDeleteFantastic and wonderful
ReplyDeleteFantastic and wonderful
ReplyDeleteExcellent
ReplyDeleteFantastic
ReplyDeletewonderful
ReplyDeleteAmazing
ReplyDeleteSuperb
ReplyDeleteFantastic and wonderful
ReplyDelete