Grow your CSS skills. Land your dream job.

Last updated on:

Common Unicode Icons

a[href^="mailto:"]:before { content: "\2709"; }
.phone:before             { content: "\2706"; }
.important:before         { content: "\27BD"; }
blockquote:before         { content: "\275D"; }
blockquote:after          { content: "\275E"; }
.alert:before             { content: "\26A0"; }
  <a href="">

<p class="phone">

<p class="important">
  REMEMBER: drink slushies too fast.

   Designers tend to whisper, ad agencies tend to shout.

<p class="alert">
   Stranger Danger!

Reference URL


  1. cnwtx
    Permalink to comment#

    For the phone you can also use this:

    a[href^="tel:"]:before             { content: "\2706"; }
  2. Mohinder Basta
    Permalink to comment#

    How can i make a menu (Link) in the vertical direction (from top to bottom)
    that contain the different image or icon before every link.
    how can i make it with css and html

    i want to use the ul and li for navigation

    • dennis
      Permalink to comment#

      You can give the ul an id/class of nav (example) for styling, and you can give each li an id/class


      .nav first { background: url(“”) }
      .nav second


  3. Permalink to comment#

    And for uncommon unicode icons, convert your code from decimal to hexadecimal. E.g, instead of using &#9650; use:

    content: “\25B2″;

  4. Johnny
    Permalink to comment#

    What about cross-browsering??? Do they work on old browsers? Thanx a lot!!!

Leave a Comment

Posting Code

Markdown is supported in the comment area, so you can write inline code in backticks like `this` or multiline blocks of code in in triple backtick fences like ```this```. You don't need to escape code in backticks, Markdown does that for you.

Sadly, it's kind of broken. WordPress only accepts a subset of HTML in comments, which makes sense, because certainly some HTML can't be allowed, like <script> tags. But this stripping happens before the comment is processed by Markdown (via Jetpack). It seems to me that would be reversed, because after Markdown processes code in backticks, it's escaped, thus safe. If you think you can fix this issue, get in touch!

If you need to make sure the code (typically HTML) you post absolutely posts correctly, escape it and put it within <pre><code> tags.

Current ye@r *

*May or may not contain any actual "CSS" or "Tricks".