csspoo

Search

Tags

  • Animation 1
  • Hover 2

Feed

RSS2.0
  • 2019-10-19

    Before after content characters

    Author

    Jens Törnell

    Comments

    Start a discussion

    To make non alphabetically characters work inside content:, you need to encode them to unicode. As they are hard to remember, here is a simple list.

    .element:before {
      /* Breaking space */
      content: "\0020";
    
      /* Non breaking space */
      content: "\00a0";
    }

    Source: https://www.designcise.com/web/tutorial/how-to-add-space-before-or-after-an-element-using-css-pseudo-elements

    If you like this post, please share it! Tweet this!

  • Write for us
  • Contact us
  • About
  • License
Copyright © 2019

This page uses cookies for Google Analytics.