WordPress.org

Support

Support » How-To and Troubleshooting » Borders around posts

Borders around posts

Viewing 8 replies - 1 through 8 (of 8 total)
  • Michael

    @alchymyth

    Forum Moderator

    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

    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.

    Michael

    @alchymyth

    Forum Moderator

    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.

    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?

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

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

    Michael

    @alchymyth

    Forum Moderator

    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>

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Borders around posts’ is closed to new replies.
Skip to toolbar