Home>Support>Change content area width

Change content area width

By katerina, 9 years ago. Last reply by Daniel, 9 years ago.

I want to change my left sidebar width and content area width. Increase content area width and decrease sidebar width. I used

#primary {
width: 80%;
float: left;
}

#secondary {
width: 20%;
float: right;
}

on Custom CSS but content area has the same width, nothing changed, only sidebar.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 7 months ago Daniel
    Hi, I Work Here

    Hi Katerina,

    I can see you have not included a direct link to your site. Would you mind posting a link to it? It will enable me get you a tested custom CSS .

    Looking forward to hear from you.

  2. 9 years, 7 months ago Private Message - katerina

    This is a private message.

  3. 9 years, 7 months ago katerina

    Hi Addo,

    Thank you for your reply. The site is on localhost so i cant send you in order to look at it.

  4. 9 years, 7 months ago Daniel
    Hi, I Work Here

    Hi Katerina,

    It’s no problem. You may want to try using the “!important” CSS declarations. Use it to modify your code above like this:

    #primary {
    width: 80%!important;
    float: left!important;
    }
    
    #secondary {
    width: 20%!important;
    float: right!important;
    }

    Please try and let me know!

  5. 9 years, 7 months ago katerina

    Using this css the content area didnt take the area tha lose the sidebar. There is a space between them that i want to make it smaller.

  6. 9 years, 7 months ago katerina

    Hi Addo,

    i used this code

    .page-template-default #primary {
    float: right;
    width: 80%;
    }
    #secondary {
    float: left;
    width: 18%;

    in order to have space between sidebar and content area. Am i ok? It looks ok!

  7. 9 years, 7 months ago Daniel
    Hi, I Work Here

    Hi Katerina,

    If it looks ok it means it has worked out for you :-)

    Always feel free to open a new thread whenever you require support.

    Cheers

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More