Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Drop up menu

Posted on 2012-04-04
5
232 Views
Last Modified: 2016-04-17
I would like to make this menu "drop up" instead of "drop down", is this possible?

<select onchange="calcRoute();" id="travel-mode-input" style="margin-left:5px;">
      <option value="DRIVING" selected="selected">By car</option>
      <option value="BICYCLING">Bicycling</option>
      <option value="WALKING">Walking</option>
    </select>
0
Comment
Question by:seopti
5 Comments
 
LVL 30

Accepted Solution

by:
LZ1 earned 500 total points
ID: 37807543
Form elements, such as radio buttons, check boxes and select menus are browser/OS dependent.  

The way a menu "drops" is dependent solely on where the page is positioned when the menu is drawn.  If your page is all the way at the top and your select box is also at the top, it will automatically drop "down".  

However, if your page is near the bottom and so is the select box, then the menu will expand "up".  

The only thing you may be able to do, if you really want/need to, is use Jquery or Javascript.  You can then restyle your form elements to look and function the way you want.
0
 
LVL 9

Expert Comment

by:Evan Cutler
ID: 37807785
For a Ready Made product for you: http://www.stunicholls.com/menu/skeleton_up.html

However, you can make your own, if you do a "view source" on this page: http://aplus.rs/adxmenu/examples/hbt/
That's what it's there for.

Tweak as you want.

it's CSS
0
 
LVL 10

Expert Comment

by:d4durvesh
ID: 37810786
Yes it is possible, please take a look at following,

stackoverflow.com/questions/7814186/drop-down-menu-that-opens-up-upward-with-pure-css
0
 
LVL 58

Expert Comment

by:Gary
ID: 39498041
I've requested that this question be closed as follows:

Accepted answer: 500 points for LZ1's comment #a37807543

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question