Use monospace fonts in a selection list - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font

Description

Use monospace fonts in a selection 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">
select {<!--from   w w  w .j a v a  2 s . c o  m-->
   font-family:"Andale Mono", "Monotype.com", monospace;
}
</style> 
 </head> 
 <body> 
  <select multiple> <option value="1">Lorem ip</option> <option value="2">Lorem ip</option> </select>  
 </body>
</html>

Related Tutorials