You are here: Reference > CSS > properties > browser specific extensions > -webkit-nbsp-mode

-webkit-nbsp-mode property

Browser support:
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:
        .example {
            width: 120px;
            height: 120px;
            overflow: auto;
            border: 1px solid #acacac;
        .normal { 
            -webkit-nbsp-mode: normal;
        .space { 
            -webkit-nbsp-mode: space;
    <div class="example normal">
    <div class="example space">
Did you find this example helpful? yes no

Supported by tags:

External links:

User Contributed Comments

Post Content

Post Content