I've used the following to size the items (you aren't restricted on
using in, could be px, or cm, etc.
1) <select
style="width='2 in'" name="D1" size="1">
_OR_
2) before the </head> tag
<!-- this sizes all select boxes the same on the page -->
<style>
SELECT {
width='2 in'
}
</style>
</head>
_OR_
3)
<style>
.select2in {
width='2 in'
}
</style>
</head>
...
<select
class="select2in" name="D1" size="1">
----- Original Message -----
From: Khurram Mahmood <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 29, 2000 2:00 AM
Subject: Re: fix size of select item
Only works for IE4+ though!
-----Original Message-----
From: Richard Yee [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 28, 2000 2:04 PM
To: [EMAIL PROTECTED]
Subject: Re: fix size of select item
To fix the size of a select box, you can put in an OPTION tag that
consists
of OPTION Value="" > .........</OPTION> You can then use a
JavaScript
event handler for the onLoad event to remove the empty OPTION entry from
the
select box.
function handleOnLoad()
{
// remove the placeholder blank line
for(i=0;i<document.rfqCreate.selectedSuppliers.options.length;i++)
{
if (document.rfqCreate.selectedSuppliers.options[i].value == "")
document.rfqCreate.selectedSuppliers.options[i] = null;
}
}
-Richard
-----Original Message-----
From: [Your Full Name] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 26, 2000 8:09 PM
To: [EMAIL PROTECTED]
Subject: fix size of select item
how can i fix the size of list box in html .
i am populating the list box from database .
its size changes according to the first option .
i want to fix the size of selection box.
-
Visit http://www.niit.com for eCommerce Solutions.
========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff
JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html