word-wrap property
3.5 | ||||
Specifies whether the current line should break if the content exceeds the boundaries of its container.
Note: The word-wrap property is supported in Firefox from version 3.5.
JavaScript page for this property: wordWrap. You can find other example(s) there. |
Possible values:
One of the following values:
Content will wrap to the next line, and a word-break will occur when necessary. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
Content exceeds the boundaries of the specified rendering box. |
Default: normal.
Example HTML code 1:
This example illustrates the use of the word-wrap property:
|
||||
<head> <style> .example { width: 200px; height: 150px; background: #99C6CD; } </style> </head> <body> <div class="example" style="word-wrap: break-word;"> breakonelongwordintomultiplewordsonmultiplelines. </div> <br /> <div class="example" style="word-wrap: normal;"> breakonelongwordintomultiplewordsonmultiplelines. </div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, b, baseFont, bdo, big, blink, blockQuote, body, button, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, fieldSet, font, form, H1, H2, H3, H4, H5, H6, html, i, input:button, input:file, input:password, input:reset, input:search, input:submit, input:text, ins, isIndex, kbd, label, legend, li, listing, marquee, menu, nobr, ol, p, pre, q, rt, ruby, s, samp, select, small, span, strike, strong, sub, sup, table, tBody, td, textArea, tFoot, th, tHead, tt, u, ul, var, xmp
Related pages:
External links:
User Contributed Comments