Andy Vaughn

Category: code

How to write CSS for a CMS

When writing CSS, it’s very important to pay attention to the “cascading” factor in your stylesheets, as opposed to simply adding style on top of style. When writing CSS for a content management system, it is vital to harness the strength of the cascade, and not repeat yourself. I’m going to show you how I […]

read more

Chess Puzzles

Chess Puzzles is a website that I designed and strategically programmed for John Bain two and a half years ago. It’s still going strong, with over ten-thousand visitors monthly playing and participating in the daily puzzles. The website was built using WordPress as a CMS, and the chess tactic engine was programmed using a custom […]

read more

Single-line CSS

This is somewhat of a personal post. “Personal” in the sense that the information is very subjective and not objective. However, I will try and persuade you of my opinion. “CSS declarations should be written on a single line.” — me p {font-size: 1.8em; line-height: 1.5; color: #000; margin: 0 0 1.5em;} …as opposed to: […]

read more