Text wrapping into a select drop down menu

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kavita_delian
Forum Newbie
Posts: 1
Joined: Thu Jul 16, 2009 8:04 am

Text wrapping into a select drop down menu

Post by kavita_delian »

In a select drop down menu, a very long text is not showing completely. Is it possible to display text in two lines into a select drop down box?
spider.nick
Forum Commoner
Posts: 72
Joined: Wed Jul 15, 2009 12:22 pm
Location: Overland Park, KS

Re: Text wrapping into a select drop down menu

Post by spider.nick »

kavita_delian wrote:In a select drop down menu, a very long text is not showing completely. Is it possible to display text in two lines into a select drop down box?
I have not tried this this, but you could throw a <br /> in between the <option></option> tags.

Code: Select all

if( strlen($string) > 20 )
Nick
Post Reply