title: ASP.NET ListBox with min-width and Horizontal Scroll Bar
body: <p>I could create an ASP.NET <code>ListBox</code> with horizontal scroll bar using the following code</p>
  
  <pre><code>&lt;div style="width:160px; overflow-x:auto;"&gt;
          &lt;asp:ListBox ID="ListBox1"  runat="server"&gt;&lt;/asp:ListBox&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But how can I set the <code>min-width</code> property to the <code>ListBox</code> so that it will not shrink even if there is no item exist. I tried with CSS's <code>min-width</code>, but did not get it. </p>
  
  <p>I visited a page <a href="http://www.codeproject.com/KB/custom-controls/HorizontalListBox.aspx" rel="nofollow">here </a>, but I cannot format it in code behind file.</p>