<p style= "width:300px; Overflow:hidden; White-space:nowrap; text-overflow:ellipsis; " > Omit me, omit me, omit me, omit me, omit me, omit me, omit me, omit me, omit me </p>
White-space Property
The White-space property sets how to handle whitespace within an element.
This property declares how to handle whitespace in elements during layout creation. The values Pre-wrap and Pre-line are new in CSS 2.1.
| Default value: |
Normal |
| Inheritance: |
Yes |
| Version: |
CSS1 |
| JavaScript Syntax: |
object. style.whitespace= "Pre" |
Text-decoration Definition and usage
The Text-decoration property specifies the adornment that is added to the text.
Note: The decorated color is set by the "Color" property.
Description
This property allows you to set some kind of effect on text, such as underlining. If the descendant elements do not have their own decorations, the decorations set on the ancestor elements "extend" to the descendant elements. User agents are not required to support blink.
| Default value: |
None |
| Inheritance: |
No |
| Version: |
CSS1 |
| JavaScript Syntax: |
object. style.textdecoration= "Overline" |
/* The characters are omitted */Overflow:hidden; Text-overflow:ellipsis; White-space:nowrap;
CSS character extra ellipsis instead of