Inputfield (small)
CODE
×
HTML
<div class='form-group-small'> <input type=text value='' class='floating-label' placeholder='Label'> <label class='floating-label'>Label</label> </div>
CSS
@media screen and (max-width: 1119px) { div.form-group-small { width: 47.5%; } } @media screen and (max-width: 767px) { div.form-group-small { width: 65.625%; } } input[type=text].floating-label { padding-right: 62px; } label.floating-label { font-size: 13px; line-height: 17px; font-family: 'Roboto'; font-style: normal; font-weight: 400; position:absolute; -webkit-transform: translateY(8px); -ms-transform: translateY(8px); transform: translateY(8px); -webkit-transition: all 250ms ease-out; transition: all 250ms ease-out; top: 1px; left: 23px; background-color: #fff; padding: 2px 5px; opacity:1; }
JS
Inputfield (small)
×
Label