Grow your CSS skills. Land your dream job.

Orange Highlight Effect

  • # March 9, 2009 at 7:42 pm

    I’ve noticed on css-tricks that when you highlight text (click and drag) it has an orange color. Anyone know how to do this? It seems like a cool little trick.

    # March 9, 2009 at 8:51 pm
    Code:
    ::selection { background: #fe4902; color: white; /* Safari */ }
    ::-moz-selection { background: #fe4902; color: white; /* Firefox */ }
    # March 11, 2009 at 2:22 pm

    woops :-p my bad misunderstood question!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

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