mozilla
Your Search Results

    :-moz-only-whitespace

    Summary

    The :-moz-only-whitespace pseudo-class matches an element that has no child nodes at all or empty text nodes or text nodes that have only white-space in them. Only when there are element nodes or text nodes with one or more characters inside the element, the element doesn't match this pseudo-class anymore.

    Syntax

    span:-moz-only-whitespace { style properties }
    

    Examples

    span:-moz-only-whitespace::before {
        background-color: lime;
    }

    ...where...

      <span> </span>
    

    Document Tags and Contributors

    Contributors to this page: Sheppy, Fredchat, ethertank, Marsf, Mw22
    Last updated by: Sheppy,
    Hide Sidebar