You are here: WordPress Video TutorialWordpress TutorialAdding Border/Lines Between WordPress Posts

Adding Border/Lines Between WordPress Posts

by Kimi on August 24, 2010

How to add or display lines (border bottom) separator under the posts in your blog.

In today Twenty Ten theme tutorial we are going to add a few css code to display dotted border bottom between the post.

Twenty ten is so very nice theme and lots of wordpress users use it as their themes.

I actually like simple theme that i can modify here and there, but the easy modification only :D. And customizing Twenty Ten is a bit hard, but we will try abit.

If you use another theme, you can watch the video, and the method is similar.

Before and after image.

To display your post having the dotted line as in the image above, here are the steps:

1. Login to your dashboard.
As usual to access your dashboard, you can type: yourdomainaddress.com/wp-admin

2. Find “Appearance” and then “Editor”.

3. Search for “style.css”.

4. Add this line of code in the very bottom:

.entry-utility{border-bottom:1px dotted black; padding-bottom:13px;}

blog seo

If you want “dashed” instead of “dotted”, you can replace “dotted” in the code, with “dashed” or even “solid”.

5. Update your file.
Refresh your blog for the end result, and it should have dotted border under your post. If it still doesn’t show up, try to clean your browser’s cache as well.

Video Tutorial:

Subscribe new tips via Email:

Was the post helpful? Share it to help others with:

{ 8 comments… read them below or add one }

Kamal Hasa September 9, 2010 at 1:24 pm

Thank you ;)

I wanted this one for my twentyten theme :)

Reply

Dina September 9, 2010 at 5:18 pm

You’re very welcome, using twenty ten is certainly giving us benefit.

Thank you for commenting

Reply

Luc September 29, 2010 at 7:20 pm

Love your site.
is there a way to add a box around a post? or at least a border between the posts and the sidebar?
thanks!

Reply

Dina September 29, 2010 at 11:58 pm

Luc, yes, it is possible by applying a specific class and style in loop.php file, see :http://codex.wordpress.org/Template_Tags/post_class

I may be will make a video tutorial someday soon, feel free to subscribe if you like.

Thank you for the nice comment!

Reply

Richard Chidike | Africanary March 20, 2011 at 1:37 am

You have got some great piece of information in this post. I think i need read this over again as I can;t help but appreciate the information. Great work.

Reply

Dorenda April 19, 2011 at 6:54 pm

I just added this code to my site and it worked like a charm. Thank you so much! I love your site.

Reply

Oda June 7, 2011 at 9:20 pm

Hi! Thank you so much for this!! What if I wanted to have a solid line between my post-title and the post-content (I always have a picture first). 13px under the title and 13px above the content. Is that possible?

Reply

Denzil August 31, 2011 at 9:07 pm

Great little trick to make my posts stand out. Twenty Ten can be a bit “white” and this helps to break up the starkness of the page. Any idea how to make the page off-white or a wash of a pale color?

Reply

Know better? Feedbacks, or Questions? Shoot! :-)

Please use a name instead of blog name or SEO stuff, otherwise it will be deleted right away.

About checkbox → See more my post:how to get rid of spam bots in wordpress post.

Thank you for visiting, you're always welcomed to be here again!

Previous post:

Next post: