Redundancy vs. Dependency

Dave Shea describes the two different ways of dealing with CSS cascading: Redundancy vs. Dependency.

Most of the time I end up doing what Dave describes: start off with dependencies, and as a project nears the end, more and more redundancies end up in the CSS. Adding redundant CSS can really annoy the logical and structured part of me, but sometimes it does make things easier to understand. Like Dave says, that can be very important when other people will edit the CSS.

Posted on January 20, 2005 in CSS, Quicklinks

Comments

  1. As Eric Meyer points out, Dave is talking about cascading, not inheritance. (I was getting worried that I had misunderstood this rather vital CSS concept until I found Eric’s post.)

  2. January 21, 2005 by Roger Johansson (Author comment)

    Ah. You’re right. I was a bit too quick posting this and didn’t stop to think about it. Thanks for pointing it out.

Comments are disabled for this post (read why), but if you have spotted an error or have additional info that you think should be in this post, feel free to contact me.