Forums

[resolved] How to increase the right side bar width of 2011 child theme? (6 posts)

  1. riteshnishar
    Member
    Posted 5 months ago #

    Hello,
    How to increase the width of the right sidebar of twentyeleven child theme?I want to change it to 300 px so that facebook like box fits into it.
    Thanks in advance for your help.Waiting for the reply!

  2. ChristiNi
    Member
    Posted 5 months ago #

    Hi riteshnishar,

    I took a look at this for you with the Firebug extension in Firefox. I found that the width of the sidebar is controlled by this id selector in the style sheet:

    #secondary

    You may also need to adjust the width of this id selector in the style sheet as well to allow for the sidebar to be that wide:

    #primary

    Hope this helps!

  3. riteshnishar
    Member
    Posted 5 months ago #

    some one told me to change this:

    #primary {
    float: left;
    margin: 0 -29.4% 0 0;
    width: 100%;
    }
    
    #secondary {
    float: left;
    margin-right: 0.6%;
    width: 300px;
    }

    but its not working !

  4. ChristiNi
    Member
    Posted 5 months ago #

    Hi riteshnishar,

    You will want to reduce the width of primary. Try this in your style sheet:

    #primary {
    float: left;
    margin: 0 -29.4% 0 0;
    width: 90%;
    }

    #secondary {
    float: left;
    width: 300px;
    }

    Hope this helps!

  5. riteshnishar
    Member
    Posted 5 months ago #

    oops not working!..you may check my site here http://www.kutchtheheaven.info/

  6. riteshnishar
    Member
    Posted 5 months ago #

    thanks it worked without changing the primary width.

Reply

You must log in to post.

About this Topic