This is HTML
<select size="25" style="width:100px" id="yearList"/>
This is Razor ( not sure if this is the correct term)
@Html.DropDownList("yearList", null, new{style="width:100px;"})
Does anyone know how to give the Razor version a size attribute similar to the HTML version?
Many thanks.
Best Solution
Like this: