Input with notice
CODE
×
HTML
<div class='attention floating-label'> <input type=text value='' class='notice' placeholder='Label'> <label class='floating-label'>Label</label> <span class='attention'>This is an important message!</span> </div>
CSS
input[type=text].notice { padding-right: 62px !important; } 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; } span.attention { color: var(--blue); display:inline-block; font-size: 16px; line-height: 26px; font-family: 'Roboto'; font-style: normal; font-weight: 400; } div.attention.floating-label > span.attention { position: absolute; bottom: -7px; }
JS
Input with notice
Erstellt: 17.01.2025 - 10:30 Uhr
Letzte Änderung: 17.01.2025 - 10:33 Uhr
×
Label
This is an important message!