Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

controlling width on the scroll-down menu boxes

Status
Not open for further replies.

aduncan

Technical User
Mar 12, 2003
2
US
Hello,

Can you help give advice on how I may be able to control the width of my scroll-down menu boxes so that I can a)remain consistent with all of my scroll-down menus, and b)Keep a uniform look with various browsers?

Thank you.

Andrew

 
you could create a class for it and specify the width in that class

see

<html>
<head>
<title>My jump menu</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+&quot;.location='&quot;+selObj.options[selObj.selectedIndex].value+&quot;'&quot;);
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<style type=&quot;text/css&quot;>
<!--
select.width {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #0099FF;
background-color: #CCCCCC;
height: 15px;
width: 200px;
}
-->
</style>
</head>

<body>
<form name=&quot;form1&quot;>
<select name=&quot;menu1&quot; onChange=&quot;MM_jumpMenu('parent',this,0)&quot; class=&quot;width&quot;>
<option selected>sadf</option>
<option>235</option>
</select>
</form>
</body>
</html> [Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top