Solved

Drop up menu

Posted on 2012-04-04
5
228 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now