faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

409 of 501 people (82%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How can I specify the width of a SELECT element?
How do I fix the maximum width even when the list items are much wider?
how do i add horizantal scrollbar to select/option if length of text is more than the width property

Apr 4th, 2008 19:41
ha mo, Steve Stair, Martin Honnen, pundari pothini, Raghu ram,


With NN4+ (though the docs don't list it)
  <SELECT WIDTH="200"
works,
with IE you can use CSS
  <SELECT STYLE="width: 200px"
taken together you use
  <SELECT WIDTH="200" STYLE="width: 200px">
As to how to add horizontal scroll bars,
as far as I know you can't.  And you can't
have a select option that spans multiple
lines either.
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com