/    Sign up×
Community /Pin to ProfileBookmark

forcing height of popup menu

is there a way (using JS or ANYTHING else) to force a popup menu to a certain height. by default some browsers (IE, FF) put a scroll bar into the menu if it’s beyond a certain length. We have a client that’s throwing a small fit about this, but it’s not somthing i’ve ever tried to “fix” before…suggestions?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@KorOct 04.2006 — But if the browser put a scrollbar, tha means the content of the div exceedes the div's width/height. You may play with the CSS overflow attribute, but in fact you will loose the menu's content which exceedes the parent div's size. Are u sure is that you want? Or I misunderstood?

Your menu looks like that?
<i>
</i>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;meta http-equiv="Content-Style-Type" content="text/css"&gt;
&lt;meta http-equiv="Content-Script-Type" content="text/javascript"&gt;
&lt;style type="text/css"&gt;
&lt;!--
#mymenu{
background:#CCCCCC;
width:100px;
height:100px;
overflow:auto;
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="mymenu"&gt;
link1&lt;br&gt;
link2&lt;br&gt;
link3&lt;br&gt;
link4&lt;br&gt;
link5&lt;br&gt;
link6&lt;br&gt;
link7&lt;br&gt;
link8&lt;br&gt;
link9&lt;br&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@bcamp1973authorOct 04.2006 — I'm sorry, one thing i should clarify, i'm referring to the standard popup form input, not a menu created using JS/CSS etc.
Copy linkTweet thisAlerts:
@JMRKEROct 04.2006 — Take a look at the options of the pop-up window as in:
<i>
</i> newWindow = window.open(information,'Display',
'toolbar=yes,scrollbars=yes,resizable=yes,width=595,height=300')
×

Success!

Help @bcamp1973 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...