title: Setting Style for ListBox in MVC Razor
body: <p>This is Razor Syntax for ListBox i am using in my page. How can i set its height and width ?
  Here noCategories is View data coming from Controller. </p>
  
  <p>$
  @Html.ListBox("noCategories");</p>
  
  <p>Controller:</p>
  
  <pre><code>    public ActionResult Configure(int? nopCategoryid)
      {
          model = new DataImporttModel();
  
          DisplaynopCommerceCategories(model, nopCategoryid);
  
          return View("Nop.Plugin.Data.Import.Views.DataImport.Configure", model);
  
      }
  
  
      private void DisplaynopCommerceCategories(DataImporttModel model, int? nopCategoryid)
      {
          var _categoryservice = new NopEngine().Resolve&lt;ICategoryService&gt;();
  
          MultiSelectList sl;
  
          model.nopCommerceCategories = new List&lt;CS_ListItems&gt;();
  
          foreach (var item in _categoryservice.GetAllCategories().ToList())
          {
              model.nopCommerceCategories.Add(new CS_ListItems() { Name = item.Name, ID = item.Id });
          }
  
          if (nopCategoryid != null)
          {
  
              sl = new MultiSelectList(model.nopCommerceCategories, "ID", "Name", new[] { nopCategoryid });
          }
          else
          {
              sl = new MultiSelectList(model.nopCommerceCategories, "ID", "Name");
          }
  
          ViewData["nopCommerceCategories"] = sl;
  
      }
  
  public class DataImporttModel
  {        
      public List&lt;C_Category&gt; Mappings { get; set; }
  
      public List&lt;CS_ListItems&gt; ClockCategories { get; set; }
  
      public List&lt;CS_ListItems&gt; nopCommerceCategories { get; set; }
  }
  </code></pre>