Alternate text colors with CSS
August 7th, 2008
When I was redesigning this site, I was experimenting many different options for the header. Among the whole set of solutions I tried, I was very happy with the one I’m going to illustrate even though I chosen another one (that is the one you can see now) because it integrates better with the the whole layout.
What I wanted to achieve was basically this:

I thought at various techniques on how to realize that: fixed image, text with alternated background, experiments with PNG transparency, ecc…. All of these things have their pros and cons, but in the end I came up with a simple solution that required just few lines of CSS code and had few cons (in respect to the others).