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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select list size?! width not working

Status
Not open for further replies.

cm80

Technical User
May 3, 2001
85
US
Hi,
I have 2 select lists on my page and I am using the width attribute to set the size but its not working.
The actual code I have is as follows.
<SELECT size=1 name=&quot;name&quot; width=&quot;70&quot;>

Is there something I am missing? I have the exact same thing for the 2 select lists but they are both different sizes on the browser.
I have them nested in a table for presentation purposes. does this make a difference?

thanks
 
Try this:

<SELECT size=1 name=&quot;name&quot; size=&quot;70&quot;>

I hope this helps,
BobbaFet

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com

Heineken is like making love in a cano... it's f*cking close to water !!!
 
i thought size=&quot;xxx&quot; determined the height (in rows) of the list.

you should use style=&quot;width: 100px;&quot;

hope this helps,

ss
 
Just so you know the <style> will only work in IE4+ and NS^ and not in NS4 or NS4.7... I have not failed; I merely found 100,000 different ways of not succeding...
 
Hey SecretSquirrel

After using the 100px code in the style of each <select> tag, the rest of the text gets cut. How to overcome this ? I want auto scroll function, so that the user can see the entire text, but with scroll, and not directly. How to do this ?

Help appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top