WordPress.org

Ready to get started?Download WordPress

Forums

Styling comments page (5 posts)

  1. TobyH
    Member
    Posted 1 year ago #

    So I have everything pretty much set up the way I want it to look, but the comments page needs some margins so it doesn't butt up to the edges:

    http://www.tbbcoach411.com/hello-world/#comments

    Is there a way to do this via css without affecting the other pages? I've tried doing this with no success.

  2. CPC Mike
    Member
    Posted 1 year ago #

    .entry-content
    {
    padding:10px;
    }
  3. TobyH
    Member
    Posted 1 year ago #

    Is there a way to just add it to the comments page without affecting the others? I tried this already and it also adds margins to the home page

  4. lucentx
    Member
    Posted 1 year ago #

    Try adding the padding only to the targeted pages. In this case for single pages:

    .single .entry-content {
        padding: 25px;
        overflow: hidden;
    }
  5. TobyH
    Member
    Posted 1 year ago #

    Seemed to do the trick thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags