WordPress.org

Ready to get started?Download WordPress

Forums

Borders around posts (9 posts)

  1. jpalumbo
    Member
    Posted 3 years ago #

    I have been trying all morning to add borders around posts...and I am getting nowhere. I've added a border to just about everything in the .css but I am sure I am missing something.

    Here is the particular post page I am referring to: http://humancoach.com/meet-our-coaching-staff/business-coaches/

    Any help would be greatly appreciated.

    I am using an Artisteer theme.

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    edit style.css of your theme, and find:

    .art-post-body
    {
      position: relative;
      padding: 10px;
      border: solid 0 #8E9EA4;
    }

    change the 0 in the border line to something like 1px

    http://www.w3schools.com/css/css_border.asp

  3. jpalumbo
    Member
    Posted 3 years ago #

    Thanks...

    I tried that. I changed it back after it didn't do anything. Here is what I have it set to now:

    {
    position: relative;
    padding: 10px;
    border: solid 3 #bebebe;
    }

    Still no border show up.

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    read my reply and the link -

    and you also might need to reset the browser cache by pressing the 'reload' button of the browser; or pressing 'CTRL' and 'F5' at the same time.

  5. jpalumbo
    Member
    Posted 3 years ago #

    oh...gotcha. Left off the 'px'

    It worked great....however now the title is in a box. Is there a way to make ONLy the post in a box?

  6. Root
    Member
    Posted 3 years ago #

    Right click. View Source. See what the post content is contained in. Add CSS to taste.

  7. jpalumbo
    Member
    Posted 3 years ago #

    It shows in <art-post-inner art-article>...but that is not in the css anywhere.

  8. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    Is there a way to make ONLy the post in a box?

    not as far as i can see.

    you could try and style ( = add new styles with borders to style.css)

    .art-post-inner {...}

    or

    .art-postcontent {...}

    but they are both not much better, and the title 'business coach' is somehow always effected.

    this is the general html structure, taken from the html code in the browser:

    <div class="art-post">
      <div class="art-post-body">
        <div class="art-post-inner art-article">
          <h2 class="art-postheader">Business Coach</h2>
          <div class="art-postcontent">
          POST CONTENT
          </div>
        <div class="cleared"></div>
      </div>
      <div class="cleared"></div>
    </div>
  9. Root
    Member
    Posted 3 years ago #

    You said that a selector is not in the CSS. Well you can add it of course.

    Its not made easier by the excessive markup in the theme.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.