WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Default theme: adding border to sidebar (3 posts)

  1. WenatcheeFred
    Member
    Posted 4 years ago #

    Having a hard time trying to find where in the CSS I can add a border to the left of the sidebar. What I tried was was to use a backgroud image that included a rule but I can't figure out where to put the code. I tried putting it in this section of the style.css file:

    /* Begin Sidebar */
    #sidebar
    {
    padding: 20px 0 10px 0;
    margin-left: 545px;
    width: 190px;
    }

    but the background image ended up being indented with a bit of the light blue background color of the sidebar showing to the left. So I assume I'm either inserting it in the wrong area or am doing it wrong.

    Here's the code I used:

    /* Begin Sidebar */
    #sidebar
    {
    background-image: url(images/blog_bckgrnnd.jpg);
    background-repeat: repeat-y;
    padding: 20px 0 10px 0;
    margin-left: 545px;
    width: 190px;
    }

    If someone can set me straight on this it would be greatly appreciated.

    Thanks.

    Fred

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Try using:

    #sidebar {
    border-left:1px solid #999;
    margin-left:545px;
    padding:20px 0 10px;
    width:190px;
    }
  3. WenatcheeFred
    Member
    Posted 4 years ago #

    My goodness! Such a prompt, helpful reply. Thanks much, esmi!!

Topic Closed

This topic has been closed to new replies.

About this Topic