Variables in CSS?

Posted on July 1st, 2008, by Cristian in Xhtml & CSS

How long have you wanted to name colors and such in your CSS instead of having to use search and replace (which breaks if you share the same colors ?

Thanks to Daniel Glazman and David Hyatt we have a proposal .

@variables { CorporateLogoBGColor: #fe8d12; }

div.logoContainer { background-color: var(CorporateLogoBGColor ); }

I expect CSS Variables to receive a very positive feedback from community and browser vendors and get implemented in all browsers!

WebKit now has an experimental implementation of CSS variables : You can test this feature using a WebKit nightly.

24 Unforgettable Advertisements

Posted on June 29th, 2008, by Cristian in Internet

Why should ads be boring?

Check out this collection of unforgettable advertisements from around the world.

PHP __autoload() function

Posted on June 28th, 2008, by Cristian in Development

PHP added several magic methods in PHP5. __autoload(), however, isn’t one of them. But that doesn’t make it any less useful. In fact it’s one of the gems in PHP that I find to be relatively under used. It’s common for PHP applications to break out classes into their own files. This becomes cumbersome when working on large projects as you wind up with numerous include/require calls for any given page. There’s got to be a better way…

What can __autoload() do for you?
Did you know that PHP will call __autoload() if you try to call a function which is not yet defined? You simply have to define it and let it know where to find the class file. Let’s use my example of placing all class definitions inside a models directory with the filename being the same as the class name. Your __autoload() function may look something like this.

function __autoload($className)
{
  require_once "./models/{$className}.php";
}

// Instantiate class with __autoload()
$order = new Order();

Make your code less ugly
If you can’t spare an extra function call here or there then __autoload() may not be for you. Though I would begin to question your reasoning. The upside is that your code could become significantly cleaner and more maintainable. The upside of easy to read code often trumps everything else.

CSS support in email clients guide

Posted on June 16th, 2008, by Cristian in Development, Xhtml & CSS

Designing an HTML email that renders consistently across the major email clients can be very time consuming. Support for even simple CSS varies considerably between clients, and even different versions of the same client.

CampaignMonitor has put together this CSS support in email clients guide to save you the time and trouble of figuring it out for yourself. With 21 different sets of results, all the major email systems are covered, both desktop applications and webmail. It comes with the PDF and Excel version for download.

Read more

Building a Bug Tracker with Expression Engine

Posted on June 6th, 2008, by Cristian in Design, Development

Filtering by Assignment

Lisa Wess, Director of Community Services at ExpressionEngine has started a series of tutorials to How to build a Bug Tracker using the power of Expression Engine.

As some of us may know, ExpressionEngine is a very good blog platform and strong alternative to Wordpress. EE is an incredibly flexible system, capable of handling many different types of data. The reason for this is the underlying power and flexibility of the Weblog Module, its Custom Field Sets, Category Groups, and Statuses. The tutorial is showing how to create the Bug Tracker using the power of the Weblog Module.

This series does assume that you have gone through the Quick Start Tutorial and have a basic understanding of how to create and assign custom field, category, and status groups. Here are all her posts and the list will continue as the Bug Tracker is not finished.

CandesTheme $75

Advertise / Sponsors

Post a job. Find one. authenticjobs.com How to Be a Rockstar Freelancer
Comments RSS Feed

Recent Comments

  • Henning: savethedevelopers.org is obviously gone and the JS-call causes errors. Couldn’t figure out what...
  • Captain Clean Boat: Nice and usefull post, thanks, this is one for my bookmarks!
  • Carlos Hermoso: Hi! I just want to say I love your site. By the way, I might switch myself to a MacBook Pro in...
  • Darren Herman: Another fantastic job by Cristi. Just need to add Disqus functionality for commenting :)
  • Darren Herman: Welcome to the club!