coding

CSS Lint

Improve your CSS coding with CSS Lint

If you’re a website designer, a WordPress theme developer or just a single site owner, you’ll most likely be using a whole set of CSS styles to generate that perfect design. But, before you’ve got that design ready to deploy across your site(s) or provide for users it is a good idea to check your styles for consistency and compatibility especially since we’re in a world with several different browsers on different operating systems on different devices. CSS Lint is an open source CSS code quality tool that performs static analysis of source code and flags patterns that might be errors or otherwise cause problems for the developer.

Dynamic JavaScript with PHP

Early this morning, I released Top 10 – A Page Counter and Popular Posts plugin for WordPress. I detailed my experience while designing this plugin. The major problem that I faced while working with this plugin was with WP Super Cache. WP Super Cache creates a static file of your post and displays this to the viewer. As a result, any PHP code that is present in your WordPress blog template is executed only once and the cached file is then served to your visitor.

The initial version of Top 10 used PHP to record the page views as well as display them and so using WP Super Cache ensured that both of these would never increment.

This is where JavaScript with PHP comes in. I ended up using AJAX to record the page views. However, for displaying the count I chose to do so by serving the PHP file as a JavaScript file.

Here’s how you go about it.

Read More »Dynamic JavaScript with PHP

CSS 3 – Making our life easier, one line of code at a time…

There are plenty of articles out there written by great CSS masters that will tell you about what’s, why’s and who’s of CSS. So if you want an in-depth analysis of CSS you’d better off reading an article by Eric Meyer or by some of the other CSS greats out there. This article is about bringing you up to speed with CSS 3 and how it makes the life of an average graphic designer who has to deal with css on a daily basis, easier.