fit a select tag in a table cell properly - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

fit a select tag in a table cell properly

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit amet, con</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
table {<!--from  www .  ja v  a 2  s.  c  om-->
   outline:2px solid black;
   font-family:Arial, sans-serif;
   font-size:21px;
}

table td {
   border:2px solid Chartreuse;
   padding:6px;
}

select {
   width:141px;
   border:none;
   font-family:inherit;
   font-size:inherit;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td class="lblCell_L">Lorem ips</td> 
     <td id="ISINcb" class="lblCell_R" align="center"> <select> <option id="ISIN1">Lorem </option> <option id="ISIN2">Lorem i</option> <option id="ISIN3">Lorem i</option> <option id="ISIN4">Lorem ip</option> </select> </td> 
     <td class="lblCell_tx" id="isinOptions">L</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials