Jump to content


Photo

menu/list width problems?


  • Please log in to reply
2 replies to this topic

#1 swiftmed

swiftmed
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 19 May 2006 - 12:22 PM

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!!
Kind Regards,

[!--coloro:#FF9900--][span style="color:#FF9900"][!--/coloro--]Andy MacDonald[!--colorc--][/span][!--/colorc--]

[!--coloro:#FF6600--][span style="color:#FF6600"][!--/coloro--][a href="http://www.swiftmediauk.co.uk/website-design.php" target="_blank"]Website Design[/a] | [a href="http://www.swiftmediauk.co.uk/website-hosting.php" target="_blank"]Cheap Web Hosting[/a] | [a href="http://www.swiftmediauk.co.uk/logo-design.php" target="_blank"]Logo Design[/a] | [a href="http://www.swiftmediauk.co.uk/search-engine-optimisation.php" target="_blank"]Search Engine Optimisation[/a][!--colorc--][/span][!--/colorc--]

#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 19 May 2006 - 12:50 PM

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.

#3 freakus_maximus

freakus_maximus
  • Members
  • PipPipPip
  • Advanced Member
  • 177 posts

Posted 19 May 2006 - 01:33 PM

[!--quoteo(post=375205:date=May 19 2006, 08:50 AM:name=hitman6003)--][div class=\'quotetop\']QUOTE(hitman6003 @ May 19 2006, 08:50 AM) View Post[/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:

<select id="myid" NAME="my name" style="WIDTH: 165px">

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users