-
-
Save greystate/6042289 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Flexible multiline form with generated line breaks | |
*/ | |
form { | |
width: 100px; | |
padding: 5px 210px 5px 5px; | |
border: 3px #ccc double; | |
text-align: right; | |
line-height: 2; | |
} | |
* + label:before, form:after { | |
content: '\A'; | |
white-space: pre; | |
} | |
label:after { | |
content: ': '; | |
} | |
input { | |
width: 180px; | |
margin-right: -200px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form> | |
<label>First field</label> <input> | |
<label>Second field</label> <input> | |
<label>3rd field</label> <input> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"separate","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment