Skip to content

Instantly share code, notes, and snippets.

Created August 27, 2012 08:28
Show Gist options
  • Save anonymous/3486680 to your computer and use it in GitHub Desktop.
Save anonymous/3486680 to your computer and use it in GitHub Desktop.
Untitled
.f
{
position: relative;
padding-left: 10em;
}
label
{
position: absolute;
left: 0;
}
.line
{
padding: 10px;
}
.names
{
display: inline-block;
padding: 10px;
background: red;
}
.names .line
{
padding-left: 0
}
<div class="f">
<div class="names">
<div class="line">
<label>Имя</label>
<input>
</div>
<div class="line">
<label>Фамилия</label>
<input>
</div>
</div>
<div class="line">
<label>email</label>
<input>
</div>
</div>
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment