Decoupling presentation from content

Posted on January 4, 2013 by

I recently ran across the anti-pattern of what I see as a common problem amongst designers and developers: coupled presentation and content. I’ve found that decoupling the presentation from the content makes things much easier to write, maintain and expand. Here’s a simple example: HTML <section> <div class=”margin-top-10″>Lorem Ipsum</div> </section> CSS .margin-top-10 { margin-top: 10px }; .margin-top-20 […]