Solved

word wrappping

Posted on 2002-04-08
3
177 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 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

688 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