Reply
style select drop down boxes
Old 05-13-2003, 01:32 PM style select drop down boxes
tonya's Avatar
Ultra Talker

Posts: 423
Location: world traveller based in UK
Hi

I have this drop down select box with some really long entries in it. I would prefer a shorter box with wrapped entries if possible does anyone know any tricks to achive this. I have worked out things like colour & style of font & background etc etc just not something like wrap.

thanks
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
When You Register, These Ads Go Away!
Old 05-14-2003, 11:43 AM
praveen's Avatar
Life is a Dream

Latest Blog Post:
Lack of Inspiration
Posts: 3,572
Location: in a distant land far away from reality
as for i remember, you cannot wrap things inside a select. unless u give them shorter names..

sorry
__________________
Praveen
Web Tools - Smilies - Celebs - Bookmarks - Indian Food - Create a Poll

Useful Threads, Tutorials and Resources
Graphics - Templates - Dreamweaver - Javascript - SEO - Ruby on Rails - Ajax Tutorials - More Ajax - CSS - More CSS
praveen is offline
Reply With Quote
View Public Profile Visit praveen's homepage!
 
Old 05-14-2003, 11:56 AM trim or strip text down
tonya's Avatar
Ultra Talker

Posts: 423
Location: world traveller based in UK
what about if i try to trim or strip the text down in some way like using left in javascript except i need a vbscript method as i am doing ASP.

???

thanks tonya
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 05-14-2003, 12:54 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Hmm.... Afraid I don't know vbscript but if each piece of text were in a variable I would do this:

if length(variable) > x {
variable = first x characters of variable + "..."
}
where x is the maximum length you want

I do have the PHP code for that somewhere if its of any help....
__________________
Free Webmaster Help - Everything a webmaster needs - for free
Free-Webhosting.info - Free web hosts reviewed and rated
Web Hosting Hunt - Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile Visit david's homepage!
 
Old 05-14-2003, 01:05 PM thanks
tonya's Avatar
Ultra Talker

Posts: 423
Location: world traveller based in UK
thanks that gives me a direction to move in.

PHP is the unic linux version of asp isnt it?

probably written in something more complex than vb script & i dont know perl or C or whatever so thanks for offer but will have to try the javascript route & maybe i will work out vb method.

the list box isnt hardcoded its drawn from a databse using asp but i may be able to slide some java in somehow

cheers anyway duck

x
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Reply     « Reply to style select drop down boxes
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12448 seconds with 12 queries