Hi I have a dropdown list that opens upward. Is there a way with CSS to force it to open downward?

Recommended Answers

All 2 Replies

Do you mean a <select> element? If so, no, not with the traditional element. It opens up or down based on the current scroll position and space required to display the options.

If you mean another type of drop down, e.g. <ul> elements, then yes. Please post your code.

have a dropdown list that opens upward

It's an asp.net dropdownlist that's populated from code-behind. There really is no CSS that forces it to open down instead of up?

<asp:DropDownList ID="ddType" runat="server" AppendDataBoundItems="true" onFocus="ddBlank('tye')">
</asp:DropDownList>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.