How to create a placeholder label
type the wix platform if you can see when clicking on the Email input
itplaceholder
does not disappear if it is not on top.
When copying to the Wixinput
form element, it can be seen that the function does not exist in the formplaceholder
<input autofocus="" default-email="" name="email" ng-attr-wix-mail-validator="{{!$ctrl.novalidateEmail()}}" ng-model="$ctrl.email" required="" type="email" class="ng-pristine ng-scope md-input ng-empty ng-valid-email ng-invalid ng-invalid-required ng-touched" id="input_0" wix-mail-validator="true" style="">
How can I add that effect in My code
.form-two {
outline: none;
color: #212121;
font-size: 13px;
border: 1px solid #f2f2f2;
background: none;
width: 100%;
padding: 1.2em 1.8em;
margin-bottom: 1.5em;
}
.center {
text-align: center;
}
.left {
float: left;
}
.right {
float: right;
}
<div class="center">
<div class="container">
<div class="wrp">
<h2>ENTRE AQUÍ.</h2>
<form action="#" method="post">
<!-- class="form-one" -->
<div class="left">
<input type="text" class="form-two" name="First Name" placeholder="Nombre">
</div>
<div class="right">
<input type="text" class="form-two" name="Last Name" placeholder="Apellidos">
</div>
</div>
</div>
</div>
It's a Material Design component known as a Text Field and can indeed be created with a bit of html and css. This is an example taken from CodePen: