(inspired by Googles Material Design)
demo: git.tim-greller.de/input
- Include the stylesheet:
- If you provide the file yourself:
<link rel="stylesheet" href="input.css"> - If you want to include the latest version automatically without downloading anything from this repository:
<link rel="stylesheet" href="https://tim-greller.de/git/input/input.css">
- If you provide the file yourself:
- Create an input with a custom label:
The input has to have either an empty placeholder, or the required attribute and has to be placed before its label.
<div class="input"> <input id="myid" type="text" placeholder /> <label for="myid">This is an input</label> </div> - You can now adjust width, height, padding, border and margin of the input-div.
