Solved

Drop up menu

Posted on 2012-04-04
5
239 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
[X]
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
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

705 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