Created
March 24, 2012 06:15
-
-
Save kapooostin/2178952 to your computer and use it in GitHub Desktop.
Flexible multiline form with generated line breaks
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: 290px; | |
padding: 5px 218px 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: 200px; | |
margin-right: -213px; | |
} |
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 fielсвысвы</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":"split","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment