Created
February 1, 2011 15:09
-
-
Save steve-ross/805982 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>untitled</title> | |
<meta name="generator" content="TextMate http://macromates.com/"> | |
<meta name="author" content="Steven Ross"> | |
<style type="text/css" media="screen"> | |
div#foo label { display: block;} | |
div#foo input { padding: 3px; margin: 3px 0 10px 0; width: 240px;} | |
div.test label {display: inline;} | |
div.test input {display: inline; width: auto;} | |
</style> | |
</head> | |
<body> | |
<div id="foo"> | |
<div class="test"> | |
<label for="test_checkbox">test checkbox</label><input type="checkbox" name="test_checkbox" value="1" id="test_checkbox"> | |
<label for="test_checkbox_2">test checkbox 2</label><input type="checkbox" name="test_checkbox_2" value="" id="test_checkbox_2"> | |
<label for="test_with_inline_style" style="display:inline;">test with inline style</label><input style="display:inline;" type="checkbox" name="test_with_inline_style" value="" id="test_with_inline_style"> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment