News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

BarelyFitz.com:
CSS Colors - Take Control Using PHP
June 02, 2006 @ 06:16:07

On BarelyFitz Designs, there's a handy tutorial that's been posted to help developers out there combine the powers of PHP and CSS to form a sort of color management system for their site.

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 referring 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

They follow the steps to making a CSS file with PHP - generate the header and output the CSS - as well as examples of its usage. They create a range of colors based around a central one, five levels in either direction. The file they've created to accomplish this is also available for download.

0 comments voice your opinion now!
css colors helper tutorial header range palette css colors helper tutorial header range palette


blog comments powered by Disqus

Similar Posts

Community News: Zend/PHP Conference & Expo 2007 Site Posted

The Bakery: New Tutorials - PHPTAL, Multiple Checkboxes, and counterCache

Felix Geisendorfer's Blog: Setting up Xdebug on Mac OS X (or Win32 / Linux)

NetTuts.com: Parallel Testing for PHPUnit with ParaTest

Zend Developer Zone: Flex and PHP: Party in the Front, Business in the Back


Community Events





Don't see your event here?
Let us know!


framework library series deployment podcast community api language interview symfony release opinion package laravel tips introduction bugfix list voicesoftheelephpant install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework