-webkit-nbsp-mode property
Specifies the behavior of non-breaking spaces within an element.
The browser's line breaking mechanism does not break lines at the 'nbsp' character as opposed to normal space characters.
With this property you can change the behavior of 'nbsp' characters to work as normal spaces.
JavaScript page for this property: webkitNbspMode. You can find other example(s) there. |
Possible values:
One of the following values:
Takes the value of this property from the computed style of the parent element. | |||||||
Default. Text should not be broken at non-breaking spaces. | |||||||
The 'nbsp' characters work like normal spaces. Text can be broken at non-breaking spaces. |
Default: normal.
Example HTML code 1:
This example illustrates the use of the -webkit-nbsp-mode property:
|
||||
<head> <style> .example { width: 120px; height: 120px; overflow: auto; border: 1px solid #acacac; } .normal { -webkit-nbsp-mode: normal; } .space { -webkit-nbsp-mode: space; } </style> </head> <body> <div class="example normal"> Text should not be broken at non-breaking spaces. </div> <div class="example space"> Text can be broken at non-breaking spaces. </div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, b, bdo, big, 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, marquee, menu, ol, p, pre, q, s, samp, select, small, span, strike, strong, sub, sup, table, tBody, td, textArea, tFoot, th, tHead, tr, tt, u, ul, var, xmp
External links:
User Contributed Comments