Thursday, September 8, 2016

AtoZ CSS Quick Tip: Color

This article is a part of our AtoZ CSS Series. You can find other entries to the series here.

Welcome to our next article as part of our AtoZ CSS series! In this series I'll be exploring different CSS values (and properties) beginning with a letter from the alphabet. Let's start by looking at the letter C.

C is for color

The color property is used to change the color of text on the page, but what about the color of selected text?

Using the ::selection pseudo element, text highlighted with the mouse can be styled. There are only a handful of properties that can be altered when styling the selected text. These are limited to:

  • color
  • background-color
  • cursor
  • outline
  • text-decoration
  • text-shadow

Continue reading %AtoZ CSS Quick Tip: Color%


by Guy Routledge via SitePoint

No comments:

Post a Comment