HTML Form How to - Create Horizontal dropdown select option menu








Question

We would like to know how to create Horizontal dropdown select option menu.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
li {<!--from  w  w  w  . jav a2 s .  co  m-->
  display: inline;
  list-style-type: none;
  padding-right: 10px;
}
</style>
</head>
<body>
  <ul id="reg-lists">
    <li class="one"><select><option>Yes</option></select></li>
    <li class="two"><select><option>Yes</option></select></li>
    <li class="three"><select><option>Yes</option></select></li>
  </ul>
</body>
</html>

The code above is rendered as follows: