Option of different size in a select - HTML CSS CSS

HTML CSS examples for CSS:Selector

Description

Option of different size in a select

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">
optgroup:before {
   content:"Demo";
   font-size:19px;
}
</style> <!-- w  w  w  .j ava2  s  . c  om-->
 </head> 
 <body> 
  <select> <optgroup label=""> <option>Lorem ip</option> <option>Lorem ip</option> </optgroup> <optgroup label="Title 2"> <option>Lorem ip</option> </optgroup> </select>  
 </body>
</html>

Related Tutorials