public
Created

UL Style Problem

  • Download Gist
gistfile1.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
<!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>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.