Home>Support>styling body content area

styling body content area

By Vince Ng, 9 years ago. Last reply by Magus, 9 years ago.

Hi. I am still quite new to these css style and I am trying to make the wrapped content area to white color with dark grey border, so that it looks boxed up.

By looking at the developer source code, I added these to custom css.

#primary.content-area {
background-color: #ffffff;
border-style: solid;
border-color: #545454;
}

The background color did changed, but not the border color. I am probably not doing it right. Any advise? Thanks in advance!

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, 5 months ago Vince Ng

    Ah.. Finally got it. Used this instead.

    #primary.content-area {
    background-color: #ffffff;
    border: 1px solid #545454;
    }
    

    But do let me know if there’s a better way. Thanks!

  2. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Vince

    You could have used

    #primary.content-area {
    background-color: #ffffff;
    border-style: solid;
    border-color: #545454;
    border-size: 1px;
    }
    

    which is how your single line entry for the border would be processed.

    Magus

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