<!-- like placeholde -->
    <input type="text" id="username" onfocus="this.value=''" 
           value="username" onblur="this.value='username'"/>
    <input type="text" id="password" onfocus="this.value=''" 
           value="password" onblur="this.value='password'"/>
        input {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            transition: 2s;
            border: 2px solid #be3d3d;
            border-radius: 20px;
            text-indent: 10px;
            font-family: Verdana;
            outline: none;
            padding: 5px;
        }
        #password{
            margin-top: 40px;
        }
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.