Help - Search - Members - Calendar
Full Version: List boxes
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Lavoie
Don't know why list boxes do not expand to show entire
business names and categories in explorer. The boxes expand
in Mozilla.

Search Business
Search Category

https://www.scripbank.com
JamieHarrop
That is probably because you have put "style="width:120px;"" in your <select> tags. Remove that and see what happens.
Lavoie
QUOTE(JamieHarrop @ Dec 8 2006, 12:12 PM) *

That is probably because you have put "style="width:120px;"" in your <select> tags. Remove that and see what happens.


Just blows the table wider
Lavoie
Come on someone can figure this one out. goin cross eyed. Must be somethin simple I'm missing
dharma
Maybe you can try to put quotes where they have to be...
like name="MERCHANT" size="1" in stand of name=MERCHANT size=1
and put the width not in style...
like style="width:120px;" but only width="120px"
may be... try it
in Opera it works like it is... no problem
Christian J
As you've noticed Mozilla is able to expand the width of an open SELECT list, even if the closed SELECT is narrower, but alas IE can't do that. Here's an awful workaround I came up with: blush.gif

CODE
<select name=MERCHANT size=1 style="width:120px;"
onclick="this.style.width='auto';this.style.position='absolute';"
onblur="this.style.width='120px';this.style.position='static';">

Only other fix I can think of is to use a DHTML drop-down menu instead of a form SELECT element. This will bring various usability issues including javascript-dependency in IE (but even the current SELECT menus depends on javascript to work).

BTW, there are many errors in the HTML code: http://www.htmlhelp.com/cgi-bin/validate.c....scripbank.com/
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.