vertically align a drop down list - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Alignment

Description

vertically align a drop down list

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
span {<!--   ww  w  .  j a  v a2  s.  co m-->
   font-size:51px;
}

span, select {
   vertical-align:middle;
}
</style> 
 </head> 
 <body> 
  <p> <span>Lorem ipsum</span> <select> <option>Lorem</option> </select> </p>  
 </body>
</html>

Related Tutorials