# floating-labels Floating Labels for Bootstrap ![Sample text input](https://i.imgur.com/JxO24vv.png) ## How to use First Include the stylesheet in your html. If you prefers, use this CDN: https://cdn.jsdelivr.net/gh/exacti/floating-labels@latest/floating-labels.min.css ```html ``` Just put the input or textarea element inside a parent (div or span) with `.form-label-group` class and add a label tag after this element. The input and label must have the same id linked with for in label to work properly. Input must have the `placeholder` defined. For in border style (like outlined material design), add the `.in-border` class. For fully outline style with transparency, use the `outline` class. If you use `outline` class, the label tag must be inside a span tag. The diference beteween in-border and outline is the background. In-border have a white background and outline is transparent with only border. #### Code samples ```html