Skip to content

Instantly share code, notes, and snippets.

@mariusneo
Created November 5, 2011 14:43
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 mariusneo/1341600 to your computer and use it in GitHub Desktop.
Save mariusneo/1341600 to your computer and use it in GitHub Desktop.
UL Style Problem
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>UL Style Problem</title>
<style type="text/css">
ul.search-inputs li label {
width: 100%;
margin: 5px;
display: block;
}
ul.search-inputs li {
width: 33.2%;
float: left;
list-style: none outside none;
}
</style>
</head>
<body>
<ul class="search-inputs">
<li>
<div>
<label>Location</label> <select>
<option value="1">USA</option>
<option value="2">Europe</option>
<option value="3">Asia</option>
</select>
</div>
</li>
<li>
<div>
<label>Sample</label>
<select>
<option value="1">Water</option>
<option value="2">Soil</option>
</select>
</div>
</li>
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment