-o-text-overflow property
9 | ||||
Specifies how to handle the overflowed area of text.
Note: The -o-text-overflow property is supported in Opera from version 9.
Use the -o-text-overflow property together with the overflow style property (with a value different from visible) and the white-space style propery (with a value of nowrap).
In Internet Explorer, Google Chrome and Safari, use the text-overflow property instead of the -o-text-overflow property.JavaScript page for this property: OTextOverflow. You can find other example(s) there. |
Possible values:
One of the following values:
Clips the overflowing text content. | |||||||
(...) is shown for overflowing text content. |
Default: clip.
Example HTML code 1:
This example illustrates the use of the text-overflow and -o-text-overflow properties:
|
||||
<head> <style> .example { text-overflow: ellipsis; -o-text-overflow: ellipsis; overflow: hidden; width: 120px; background: #99C6CD; white-space:nowrap; } </style> </head> <body> <div class="example" nowrap="nowrap"> Overflowed text is to be visually clipped. </div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
address, blockQuote, body, button, center, dd, dir, div, dl, dt, fieldSet, form, H1, H2, H3, H4, H5, H6, html, input:button, input:reset, input:submit, isIndex, legend, li, marquee, menu, ol, optGroup, option, p, plainText, pre, textArea, ul, xmp
Related pages:
text-overflow
color
font
font-family
font-size
font-size-adjust
font-style
font-variant
font-weight
text-align
text-align-last
text-autospace
text-decoration
text-indent
text-justify
text-kashida-space
text-shadow
text-transform
text-underline-position
color
font
font-family
font-size
font-size-adjust
font-style
font-variant
font-weight
text-align
text-align-last
text-autospace
text-decoration
text-indent
text-justify
text-kashida-space
text-shadow
text-transform
text-underline-position
External links:
User Contributed Comments