I've got an input field with one line on the bottom, much like a line of a textbook. I want to be able to display the placeholder text as well as the text the user inputs just a little above the line.
I've made a fiddle over here: http://jsfiddle.net/H7AVP/
This is what my HTML looks like:
<input type="text" placeholder="subscribe for early access" class="form-control email">
And my CSS (not cross-browser optimized for the question):
.email::-webkit-input-placeholder {
font-family: 'Open Sans', sans-serif;
font-size: 25px;
padding-bottom:45px;
margin-top:-10px;
}
input {
background-color: #2980b9;
outline: 0;
border-bottom: 2px;
border-top: 0;
border-left: 0;
border-right: 0;
border-bottom-style: double;
border-bottom-color: #34495e;
height: 46px;
width: 300px;
}
input:focus{
outline:0;
}
textarea:focus{
outline:0;
}