Click here to Skip to main content
15,921,062 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<<pre>head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">


    <title></title>
	<meta charset="utf-8" />

    <link href="Content/bootstrap.min.css" rel="stylesheet" />
    <link href="css/TheBigPicture.css" rel="stylesheet"/>
    <link href="Content/bootstrap.css" rel="stylesheet" />
</head>


in my body i have

<<pre>body>

    <div class="container">
        <div class="row">
            <div class="col-md-6 col-sm-12">
                <h1>The Big Picture</h1>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni, iusto, unde, sunt incidunt id sapiente rerum soluta voluptate harum veniam fuga odit ea pariatur vel eaque sint sequi tenetur eligendi.</p>
            </div>
        </div>
     </div>

        <script src="Scripts/jquery-1.10.2.min.js"></script>
        <script src="Scripts/bootstrap.min.js"></script>
</body>


and my style sheet i have

XML
body {

    
	margin-top: 50px;
	margin-bottom: 50px;
	background: none;
}

.full {
  background :url(http://wallpapercave.com/wp/hMwO9WT.jpg);
  background-size:cover;
}


What I have tried:

I have tried using an image that is stored both locally and on the web and neither wont work. I have also tried inline styling
Posted
Updated 19-May-16 8:31am

1 solution

I'm not real sure where you want the image to be displayed. ??? The only image I found was the one in the 'full' css class.

XML
.full {
  background :url(http://wallpapercave.com/wp/hMwO9WT.jpg);
  background-size:cover;
}


And I don't see you using that class anywhere in you HTML.

Maybe I am wrong. ??? I think you need to put class="full" on one of you components. If you want the image on the body, put that there.
 
Share this answer
 
Comments
KevinClaassens 19-May-16 14:41pm    
Thank you very much!! I found my mistake,and was a very stupid one too;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900