CSS Colors: Take Control Using PHP

While many web sites use powerful programming environments to create HTML, these same tools are usually ignored when it comes to creating Cascading Style Sheets (CSS). This article describes how to take control of your colors in CSS using PHP. You will learn how to:

  • Centralize your color definitions using variables.
  • Separate presentation and content by refering to colors using abstract names such as base and highlight.
  • Automatically generate a color gradient from a single base color
  • Automatically adjust the contrast of foreground colors so they can viewed on top of your background colors

Read my article: CSS Colors: Take Control Using PHP

Leave a Reply