简体   繁体   中英

Bootstrap, css How to change background

I am using this bootstrap: http://ironsummitmedia.github.io/startbootstrap-simple-sidebar/# I want to change this white background? I've tryed in class wrapper , but it changed only background under content, rest od page under it was still white.

Thanks for help :)

#wrapper {background-color: red;...}

} 在此处输入图片说明

It's happening because the body, html and #wrapper height are not set to 100%, so add:

html, body { height: 100%; } 
#wrapper { height: 100%; background-color: red; }

您将需要更改body的background-color属性以及page-content-wrapper。

Try changing the page-content-wrapper class. It will change the background of the white part, but you may want change the color on the body too.

if you inspect the body css are this,

font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 14px; line-height: 1.42857143; color: #333; background-color: #fff; //change the color

Just try to inspect and edit it until you get what you want.

Apparently have rules #wrapper and also in the body, try this way:

#wrapper {
    ...
    background-color: #eee;
}

body {
    ...
    background-color: #eee;
}

I hope i´ve helped.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM