Support » Themes and Templates » Matching Content Background and Sidebar Background Length

  • Resolved plantedvine

    (@plantedvine)


    Hello!
    I customizing the Vigilance theme (through “My Vigilance”) and am trying to insert a white content background on my blog.

    How can I get the sidebar length to match the content length to get rid of the nasty break? I’ve been searching the internet for hours and have yet to find a solution that works for me.

    Here is the code that I currently have for this:

    #content {
    background:#FFF;
    float:left;
    padding:0 40px 0 0;
    width:590px;
    }
    
    #sidebar{
    background:#FFF;
    float:left;
    padding:0 40px 0 0;
    width:260px;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • i would just apply white background to #wrapper.

    #wrapper{ background:#fff;}

    Apply the background-color to #wrapper should do the trick.

    #wrapper {
      background-color:#FFFFFF;
      margin:0 auto;
      text-align:left;
      width:930px;
    }

    Peter

    Peter,

    I had tried to add a wrapper before, but I apparently made an error in the code! This works perfectly; thank you so much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Matching Content Background and Sidebar Background Length’ is closed to new replies.