I'm working with an ASP.NET page that has a number of dropDownList controls. I'm trying to apply formatting so I can fit it into a small panel without the longer named list items blowing out the control. I applied a % width to them, which fixes the problem of it fitting, but then the control gets misaligned. Trying to figure out how to get the display to go to the left if there isn't any more room on the other side of the control.
Here's the drop down:
<asp:DropDownList ID="ddlDownloadsSector" AutoPostBack="true" CssClass="ddlstyle" EnableViewState="true" OnSelectedIndexChanged="ddlDownloadsSector_SelectedIndexChanged" runat="server" /> and here's the style:
.ddlstyle { width: 35% }
<select>element, your options for formatting will be limited. You may need to look into using a UI framework like jQuery UI, Bootstrap, Kendo, etc..