Solved

word wrappping

Posted on 2002-04-08
3
146 Views
Last Modified: 2010-05-18
i have a list box using select tag. in the style attribute i have give style="word-wrap:text-break" however, the contents do not break to the next line. hence i am unable to see the item if the text is too long. what should i do?
0
Comment
Question by:champs
3 Comments
 
LVL 14

Accepted Solution

by:
avner earned 50 total points
ID: 6927459
http://www.blooberry.com/indexdot/html/tagpages/o/option.htm
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/dhtmlrefs.asp

CSS supported for the OPTION element are only background-color and color.

Hence, the word-break attribute will not work for the option element.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6927775
Avner is absolutely correct.  If you need full display of the options, either use a wider selecet of use an element type that will wrap the text.

Cd&

0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 6927778
Exactly...

When using selects, just make sure that your texts are short and descriptive so they fit into your design.

Stylesheets on selects will first of all not work in Netscape at all...second of all as avner stated...are only limited in their support in Internet Explorer as well.

Max.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now