Neon Rocket

Even Neo is Impressed

RSS 2.0

January 4th, 2013

Decoupling presentation from content

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 { margin-top: 20px }; (etc) …Continue reading →