How to avoid white artifacts in images with transparent background

June 25th, 2011

I don’t know how many times I have made images with transparent background only to discover, once implemented on the intended website, that they have white artificats in the transparent areas. This happens when you change resolution of an image with transparent background and then save for web and devices.

There are 2 ways around this:

1. Use the ordinary save function instead of “save for web and devices”. This is the best solution for gif and png.
2. Apply the desired resolution on the image and save (as photoshop file) *before* you save for web and devices as gif or png.

Highlighting menu items in wordpress with css

February 25th, 2011

With Wordpress 3.0 came 3 new style classes that allow you to fully style the menu items to your liking. The classes are:

.current-menu-item
.current-page-ancestor
.current-post-ancestor

If they are missing from your stylesheet – they probably are – make sure to add them and define properties for them. Together with the good old “.current-page-item” you can finally highlight the menu items all the way. When on a page, when on a subpage to that page, when in a category and when in a post in a category. These classes saved my day. I hope they will save your day too.

Time to highlight your wordpress menu items!

My favorite extensions for Joomla

January 29th, 2011

The exentension I always make sure to install on my Joomla websites are:

Kunena (Best forum extension)
uddeIM (Best private message extension(
Extended menu module (Best menu module)

Then something for google webmaster tools and google analytics. I will get back to you on this in a few days with links etc.