Hi, Is there an easy or recommended way to generate markup for *floating labels*? Two examples: - Bootstrap examples: https://getbootstrap.com/docs/4.3/examples/floating-labels/ - simple_form: http://simple-form-bootstrap.plataformatec.com.br/examples/floating_label Basically I think it needs: - [some extra custom CSS](https://getbootstrap.com/docs/4.3/examples/floating-labels/floating-labels.css) using `:placeholder-shown` - generate form `<label>` AFTER the `<input>` like this: ```html <input type="email" class="form-control" id="exampleInputEmail" placeholder="Enter email" autocomplete="email" required> <label for="exampleInputEmail">Email</label> ``` I think this could be a nice addition to bootstrap_form, either as a section in the README or as actual code/API additions. ## Screenshot <img width="522" alt="Example_Rails_application_with_SimpleForm_and_Bootstrap" src="https://user-images.githubusercontent.com/22144/59147876-6d02a100-8a01-11e9-8bf8-1f8e80e75a26.png">
Hi,
Is there an easy or recommended way to generate markup for floating labels? Two examples:
Basically I think it needs:
some extra custom CSS using
:placeholder-showngenerate form
<label>AFTER the<input>like this:I think this could be a nice addition to bootstrap_form, either as a section in the README or as actual code/API additions.
Screenshot