Log in

View Full Version : Resolved Bootstrap background body color white container + website not showing correctly



mlegg
02-24-2017, 10:44 PM
I cloned my website original website (http://ahepa215.org/) to make new website (http://ahepa215.org/index2.html). On the original, the page is all white with the blue text. The original page works correctly but the new page does not show the background html red and the entire page doesn't show properly even though the html is validated. I want it to appear similar to this pagehttp://stnickporticons.com/ where the color is on the outside on the html and the middle is all white


On the new page I tried to add


html {
background-color: red; }

body {
color: #036;
font-size: 2rem;
background-color: #fff; }

This is the custom css for the original page


body {
color: #036;
font-size: 2rem;
background-color: #fff; }

styxlawyer
02-25-2017, 10:14 AM
The page you are trying to emulate is based on the Bootstrap framework and has these three lines in the <head>:



<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/church-theme.css" rel="stylesheet">
<link href="css/colorbox.css" rel="stylesheet">


I think you'll find that the "bootstrap.min.css" file contains what you need, but it may be difficult to find it in a minimised file.

mlegg
02-26-2017, 01:22 AM
I solved it with this

html {
background-color: red;
}
body {
color: #036;
font-size: 2rem;
background-color: #fff;
width: 90%;
margin: 0 auto
}