Skip to content

Instantly share code, notes, and snippets.

@davemo
Created November 6, 2010 04:11
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 davemo/665183 to your computer and use it in GitHub Desktop.
Save davemo/665183 to your computer and use it in GitHub Desktop.
Testing the way some form elements get floated as a base case.
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Form Float Isolation!</title>
<style type="text/css">
div { /** Basic Scaffolding **/
border: 1px solid #ccc;
}
.control-group {
height: 50px;
}
.content {
height: 200px;
}
.right { /** BAD :P **/
float: right;
}
</style>
</head>
<body>
<h1>A test to see how form controls float cross browser</h1>
<div class="control-group">
<div class="right">
<select id="createList_listType" name="listType">
<option value="QUOTE_LIST">Quote List</option>
<option value="INVOICE_COMPARISON">Invoice Comparison</option>
<option value="WEEKLY_PRICE">Weekly Price</option>
<option value="ORDER_GUIDE">Order Guide</option>
</select>
<button id="createListButton">Create List</button>
<button id="manualUpdater">Update</button>
</div>
</div>
<div class="content"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment