"Contact form"
Bootstrap 4.1.1 Snippet by RajeshKunche

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<!---heading---->
<header class="heading"> Registration-Form</header><hr></hr>
<!---Form starting---->
<div class="row ">
<!--- For Name---->
<div class="col-sm-12">
<div class="row">
<div class="col-xs-4">
<label class="firstname">First Name :</label> </div>
<div class="col-xs-8">
<input type="text" name="fname" id="fname" placeholder="Enter your First Name" class="form-control ">
</div>
</div>
</div>
<div class="col-sm-12">
<div class="row">
<div class="col-xs-4">
<label class="lastname">Last Name :</label></div>
<div class ="col-xs-8">
<input type="text" name="lname" id="lname" placeholder="Enter your Last Name" class="form-control last">
</div>
</div>
</div>
<!-----For email---->
<div class="col-sm-12">
<div class="row">
<div class="col-xs-4">
<label class="mail" >Email :</label></div>
<div class="col-xs-8" >
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*-----Background-----*/
body{
background-image:url(https://s3.envato.com/files/243754334/primag.jpg);
background-repeat:no-repeat;
background-size:cover;
width:100%;
height:100vh;
overflow:auto;
}
/*-----for border----*/
.container{
font-family:Roboto,sans-serif;
background-image:url(https://image.freepik.com/free-vector/dark-blue-blurred-background_1034-589.jpg) ;
border-style: 1px solid grey;
margin: 0 auto;
text-align: center;
opacity: 0.8;
margin-top: 67px;
box-shadow: 2px 5px 5px 0px #eee;
max-width: 500px;
padding-top: 10px;
height: 363px;
margin-top: 166px;
}
/*--- for label of first and last name---*/
.lastname{
margin-left: 1px;
font-family: sans-serif;
font-size: 14px;
color: white;
margin-top: 10px;
}
.firstname{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: