Nathan Tregillus
Nathan Tregillus

Reputation: 6334

Is there a way to control height of a drop down list select?

I have a popup div that my product manager wants me to place a drop down select box. the problem is that the drop down, when opened, overlaps the popup window's boarder. (See below awful ascii art)

____________
|My Popup  |
|  ____    |
| |___V|   |
| |    |   |
|_|    |___|
  |____|

As you can see, my product manager wants me to limit the size that the dropdown select's expands so that it does not exist the popup.

Everywhere I have searched, everyone has said this is not possible. Any ideas?

Upvotes: 0

Views: 1033

Answers (2)

U r s u s
U r s u s

Reputation: 6968

This should help you out. very elegant and clean.

http://css-tricks.com/long-dropdowns-solution/

Upvotes: 1

Vladimir
Vladimir

Reputation: 387

If popup positioned absolutely, there is no html/css way to do this. But javascript can help ya with this, just add offset top + height of you sub-popup to height of main popup.

Upvotes: 1

Related Questions