"Anirudha Bhowmik Image compliant input boxes"
Bootstrap 4.0.0 Snippet by anirudhabhowmik

1
2
3
4
5
6
7
8
9
10
11
12
13
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/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 ---------->
<h1>Nice input box</h1>
<form>
<input type="text" name="name" class="question" id="nme" required autocomplete="off" />
<label for="nme"><span>What's your name?</span></label>
<textarea name="message" rows="2" class="question" id="msg" required autocomplete="off"></textarea>
<label for="msg"><span>What's your message?</span></label>
<input type="submit" value="Submit!" />
</form>
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
/*
Basic input element using psuedo classes
*/
html {
font-family: 'Lora', sans-serif;
width: 100%;
}
body {
margin: 5% auto 0 auto;
width: 90%;
max-width: 1125px;
}
h1 {
font-size: 28px;
margin-bottom: 2.5%;
}
input,
span,
label,
textarea {
font-family: 'Ubuntu', sans-serif;
display: block;
margin: 10px;
padding: 5px;
border: none;
font-size: 22px;
}
textarea:focus,
input:focus {
outline: 0;
}
/* Question */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: