Site logo

Archived topic

Background Color for Headlines

3 replies · Started by Ben on April 14, 2017

Viewing posts 1–4 of 4

Hi Tom,

I have a single column layout on my personal blog. It is plain white, black text and a light grey background color. Is it possible to give a background color to the post titles/headlines? That would give a little optical devide between the posts. I use devided containers but with a 0px space - that way it looks best but the blog now seems like an endless paper and I would love to devide things a little.

Best wishes and thank you!
Ben

Hi Ben,

You could try this:

h2.entry-title {
    background: #EFEFEF;
    padding: 20px;
}

Or:

.archive article:not(:first-child),
.blog article:not(:first-child),
.search article:not(:first-child) {
    border-top: 1px solid #DDD;
}

That did it - thank you so much!

You're welcome :)

This archived topic is closed to new replies.