Something I see more and more of as I peruse the blogosphere is comment paragraphs without any padding or margins added. Don’t these bloggers know that white space adds to a website’s readability? But, then again, it’s not entirely the blog author’s fault–it’s the theme designer’s.
One of the latest and greatest methods in CSS, though it’s been around for a while, has been making its rounds lately: nullifying the padding/margins universally (or by individually chosen selectors) in order to make it consistent in all browsers.
* {margin: 0; padding: 0;}
This can be a lifesaving tool when it comes to CSS coding, but it can be a nightmare if you don’t actually take the time to add that necessary spacing (i.e. padding/margins=white space) back into the document.
[selector] {margin: 10px 0; padding: 2px;}
So, if you’re in the business of distributing themes or creating a design for someone, double check to make sure you’ve added the appropriate white space to all of the selectors which are likely to appear or be used.
The most often overlooked, unfortunately, seems to be the paragraph tags in the comments. Oh, the paragraphs are there in the source code, but they appear to be one jumbled mess when viewed in the browser.
Rather than apply padding and margins to the paragraphs in the content, take the time to create a universal rule that will encompass all paragraphs and then get more specific with the content and sidebar paragraphs.
p {margin: 10px 0; padding: 2px;}
#content p {margin: 5px 0 10px; padding: 0;}
#sidebar p {margin: 5px 0; padding: 0;}
Some other selectors you may want to pay special attention to when using any margin/padding nullification are tables (and all their tiny bits), lists (ordered, unordered, dictionary), headings, block quotes and code blocks.
That is my friendly tip for the day–go forth and check whether your comment paragraphs (as well as the other elements of your site) are readable.



Oh what a timely reminder! Recently I spent an hour in consult with a client discusing options to the default editor when it turned out his theme has no p spacing.
While I’m glad it was an easy & simple (and fast!) fix, it was kind of bonehead considering the original theme was from a leading & prolific designer.
(granted it was one of his first themes, so it was an oversight, but still…)
# June 6th, 2008
Thank you for bringing this post online. The tips stated above are very useful indeed.
Thank you very much for your work
Regards - Tina
# June 13th, 2008
I have to say, I’ve never really thought about that. I’ll have to see if I can get my blogs to do that to add to the white-space appeal.
# July 12th, 2008
Thanks for the tip. I’ve just added white space to my comment paragraphs. Only problem is that most readers just leave 1 line comments.
ps. How did you get the indentation on your post paragraphs?
Regards,
Darron
# July 19th, 2008
Thanks for your really helpful post.
I just came across your blog after Googling “blog trackbacks”, to find out what they’re all about. I’m a novice blogger (about 3 months) and minimally tech-savvy, trying to navigate my way through the best I can.
Although Word Press makes it relatively easy to get up and running with a new blog, they assume you know an awful lot about blogging. Even referring to the tutorials at Word Press was challenging because they assume you know what the baffling terms mean. How can I decide whether or not to use a trackback if I don’t fully know what it means, what it does, and what the consequences may be?
I’m absolutely thrilled to find you. You speak plainly and things are starting to make sense to me. I’ll be tapping into your great advice regularly.
Thank you so much.
Regards, Meg
# July 19th, 2008