html input label inside

Solutions on MaxInterview for html input label inside by the best coders in the world

showing results for - "html input label inside"
Adelynn
06 Jan 2021
1<style>
2#input_group{
3  position:relative
4}
5
6#label{
7  position:absolute;
8  left:5px;
9  top:50%;
10  transform:translate(0,-50%)
11}
12
13#input{
14  padding-left:40px
15}</style>
16
17<div id='input_group'>
18  <label id='label' for="input">Label:</label>
19  <input id='input' type="text">
20</div>
21
22