Tuesday, August 31, 2010

CSS page margins

I'm not sure how this practice ever became en vogue, but I'm here to lay down the gauntlet - if you have a webpage that has text, and that text goes to the far left, and you decide to style your body tag with "margin: 0", your web development license should be revoked.  The usability of your website just went through the floor without any real stylistic purpose.  This particular styling option should be reserved only for pages that need to snug up images or other non-text elements on the left, with the text firmly readable in the center.  When asked whether programming is an art or a science, this is why I answer "both".  There's a whole lot of logic and methodology to it, but some aspects really are just artistic.