Align Options in Select box to right - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:select

Description

Align Options in Select box to right

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">
select.inputstyle {
   width:178px !important;
   height:27px !important;
   margin-top:6px !important;
   direction:rtl !important;
   text-align:left;
}
</style> <!-- w w  w  .j a v  a  2s  . c om-->
 </head> 
 <body> 
  <select id="subjectArea" name="subjectArea" class="inputstyle"> <option value="choose"></option> <option value="subjArea">Subject Area</option> </select>  
 </body>
</html>

Related Tutorials