WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Matching Content Background and Sidebar Background Length (4 posts)

  1. plantedvine
    Member
    Posted 4 years ago #

    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;
    }
  2. AlethiaPak
    Member
    Posted 4 years ago #

    i would just apply white background to #wrapper.

    #wrapper{ background:#fff;}

  3. Peter Boosten
    Member
    Posted 4 years ago #

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

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

    Peter

  4. plantedvine
    Member
    Posted 4 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic