"Move Placeholder To Top on Focus And While Typing"
Bootstrap 3.0.0 Snippet by sumi9xm

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="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hitgoalz</title>
<link rel="stylesheet" href="style.css"> </head>
<body>
<div class=" box">
<h2>Contect Us</h2>
<form>
<div>
<input type="text" name="text" required="">
<label>Name</label>
</div>
<div>
<input type="mail" name="mail" required="">
<label>Mail</label>
</div>
<div>
<input type="password" name="password" required="">
<label>Password</label>
</div>
<div>
<div>
<textarea></textarea>
<label>Message</label>
</div>
<input type="submit" value="Send"> </div>
</form>
</div>
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
body {
margin: 0px;
padding: 0px;
background-image: url(https://wallpaperscraft.com/image/street_city_evening_black_white_lights_buildings_hdr_25485_1920x1080.jpg);
background-size: cover;
background-repeat: no-repeat;
}
.box {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 400px;
background: #fff;
padding: 40px;
border: solid 1px rgba(0, 0, 0, o.2);
box-sizing: border-box;
box-shadow: 0 5px 10px rgba(0, 0, 0.2);
}
.box h2 {
color: #EF5350;
padding: 0px;
text-transform: uppercase;
}
.box input {
padding: 10px 0;
margin-bottom: 30px;
}
.box textarea {
height: 80px;
padding: 10px;
margin-bottom: 40px;
}
.box input,
.box textarea{
width: 100%;
box-sizing: border-box;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: