Jump to content

Archived

This topic is now archived and is closed to further replies.

swiftmed

menu/list width problems?

Recommended Posts

Hello,

I have been asked by one of my clients to make the width of a dynamic dropdown list a certain width. I thought there would be an option like on a text field where you could enter the amount of character width you would like but there is not.

Is there a way i can make this a certain width? many thanks for any advice provided. Thank You!!

Share this post


Link to post
Share on other sites
Do you mean a select box? or do you mean a html div or td? If it's the latter, then you can use css to set the width. If you are using a select box, then the width is determined by the length of the text inside of it.

Share this post


Link to post
Share on other sites
[!--quoteo(post=375205:date=May 19 2006, 08:50 AM:name=hitman6003)--][div class=\'quotetop\']QUOTE(hitman6003 @ May 19 2006, 08:50 AM) [snapback]375205[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Do you mean a select box? or do you mean a html div or td? If it's the latter, then you can use css to set the width. If you are using a select box, then the width is determined by the length of the text inside of it.
[/quote]


Unless its depricated and I should not be doing it this way, I can set the width of my select box no problem:

[code]<select id="myid" NAME="my name" style="WIDTH: 165px">[/code]

I use this to keep layout clean and not constantly showing various size boxes. In the example above, I use this for a "Yes" and "No" select box, but obviously the width of the box is going to be more than the text in the box.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.