Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can't get margin to display correctly


  • nzguyyy
    Participant

    @nzguyyy

    I am new to CSS and trying to change the formatting of my post-content div. My forum home page, and topic pages look okay but the margin in my post content page isn’t quite right. I can fix it by inspecting element and performing the change below, but then it reverts to being broke again.

    I change it to this:

    #bbpress-forums .post-content p {
    margin: 0px 0px 0px !important;
    display: block;
    }

    but then it reverts to this:

    #bbpress-forums .post-content p {
    margin: 0px 0px 20px;
    display: block;
    }

    Any idea what I’m doing wrong? Forum is here:

    http://www.planitnz.com/new-zealand-travel-forum

Viewing 2 replies - 1 through 2 (of 2 total)

  • Tecca
    Participant

    @tecca

    Do you mean the margins between the post and the date of the post? Because it seems like the opposite actually fixes the problem (your first CSS bit in your post with 0 margin).

    You also seem to have these two in your CSS:

    #bbpress-forums .post-content p

    and

    .post-content p

    Both are doing the same thing, so you could have a conflict with your CSS there. Remove one of them entirely and work with just the one you keep. Be sure to refresh your cache (ctrl+f5) after saving the change in your CSS file.


    nzguyyy
    Participant

    @nzguyyy

    Thanks. I didn’t know I had a .post-content p as well as a #bbpress-forums.post-content p.

    I’ve removed the first one and that seems to have fixed my problem.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar