• I’m trying to add a background to my post titles. I’d also like to increase the background’s padding. And if possible instead of using a color use an image so I can round the corners. Whenever I try to edit the h1 background color in my stylesheet it adds a background to the post titles and to the sidebar categories… Why is this happening? What code do I need to just edit my post title??

    http://www.moviestinger.com is my site

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Try something like this:

    .post h2{
    background: #000 url(http://your-domain.com/path/image.gif) 0 0 no-repeat;
    }

    Whenever I try to edit the h1 background color in my stylesheet it adds a background to the post titles and to the sidebar categories… Why is this happening?

    Because your Sidebar Also uses the same h1.

    If you want to make them different, you would have to create a new h1 style and call it h1a or whatever you want and call it from the sidebar 🙂

    Thread Starter johnsena

    (@johnsena)

    I’ve added that code to my post and nothing changes. Also how could I make the whole post not just the title behind a background?

    Thanks

    Thread Starter johnsena

    (@johnsena)

    hmm it’s adding it to my other page headers just not my main page post title’s and the actual post page

    Thread Starter johnsena

    (@johnsena)

    ah ok I got it working – thanks

    still wondering bout how to get the whole post if anybody knows =)

    Thread Starter johnsena

    (@johnsena)

    I’m trying to figure out where to put the div’s on my header page so it puts the background around the whole post. When I extend the </div> down to underneath the comments code it breaks the whole page.

    Thread Starter johnsena

    (@johnsena)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How do you edit post title background/padding’ is closed to new replies.