Skip to content

Instantly share code, notes, and snippets.

@kapooostin
Forked from anonymous/dabblet.css
Created March 24, 2012 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kapooostin/2178944 to your computer and use it in GitHub Desktop.
Save kapooostin/2178944 to your computer and use it in GitHub Desktop.
Flexible multiline form with generated line breaks
/**
* 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;
}
<form>
<label>First fielсвысвы</label> <input>
<label>Second field</label> <input>
<label>3rd field</label> <input>
</form>
{"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