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.
- Previous post: Color Scheme Generator 2
- Next post: Accessibility From The Ground Up
Subscribe / follow
Sponsors
Authentic Jobs
- Experienced PHP / MySQL Developer at eTecc / Interactive (Oak Brook, IL, Il, US)
- (re)define our guts: FarmersWeb seeking Lead Web Engineer at FarmersWeb, LLC (New York, NY, Ne, US)
- Java Software Developer eCommerce at arvato Systems North America (New York, NY; San Francisco, CA; Chicago, IL, Il, US)
- Junior Designer & Front-ender at QueryClick (Edinburgh, UK, GB)
DreamHost web hosting
Use the promo code 456BEREASTREET3 to save USD 20 when you sign up for DreamHost


Comments
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.)
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.