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

Recommended Answers

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.

Jump to Post

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 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.