Skip to content

Instantly share code, notes, and snippets.

@libryder
Created January 16, 2013 23:21
Show Gist options
  • Save libryder/4551947 to your computer and use it in GitHub Desktop.
Save libryder/4551947 to your computer and use it in GitHub Desktop.
Easily align form fields with their labels
<div>
<div style="width: 200px">
Title
</div>
<div style="float:left">
[text field]
</div>
<div style="clear:both"></div>
<div style="width: 200px">
Language
</div>
<div style="float:left">
[dropdown]
</div>
<div style="clear:both"></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment