?
Solved

word wrappping

Posted on 2002-04-08
3
Medium Priority
?
179 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Accepted Solution

by:
avner earned 200 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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.
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

770 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