Results 1 to 3 of 3

Thread: Bootstrap background body color white container + website not showing correctly

  1. #1
    Join Date
    Jan 2009
    Location
    NH
    Posts
    613
    Thanks
    95
    Thanked 24 Times in 24 Posts

    Default Bootstrap background body color white container + website not showing correctly

    I cloned my website original website to make new website. 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

    Code:
    html {
    background-color: red; }
    
    body {
    color: #036;
    font-size: 2rem;
    background-color: #fff; }
    This is the custom css for the original page

    Code:
    body {
      color: #036;
      font-size: 2rem;
      background-color: #fff; }
    Last edited by mlegg; 02-26-2017 at 12:21 AM.

  2. #2
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    382
    Thanks
    0
    Thanked 44 Times in 41 Posts

    Default

    The page you are trying to emulate is based on the Bootstrap framework and has these three lines in the <head>:

    Code:
    <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.

  3. #3
    Join Date
    Jan 2009
    Location
    NH
    Posts
    613
    Thanks
    95
    Thanked 24 Times in 24 Posts

    Default

    I solved it with this
    Code:
    html {
      background-color: red;
    }
    body { 
      color: #036;
      font-size: 2rem;
      background-color: #fff; 
      width: 90%;
     margin: 0 auto
    }

Similar Threads

  1. Div not showing background color
    By gottijay2000 in forum CSS
    Replies: 2
    Last Post: 04-07-2015, 09:26 PM
  2. Container Div Background IMG/Color Not Showing
    By dineonyourdesign in forum CSS
    Replies: 1
    Last Post: 12-03-2009, 02:24 PM
  3. Replies: 2
    Last Post: 06-24-2008, 04:22 PM
  4. Background image in Container is not showing up
    By moonlighter44 in forum CSS
    Replies: 3
    Last Post: 06-05-2008, 01:06 AM
  5. Replies: 0
    Last Post: 01-29-2007, 08:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •