Solved

word wrappping

Posted on 2002-04-08
3
136 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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…

744 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

17 Experts available now in Live!

Get 1:1 Help Now