Why Bootstrap is not working properly?
<p>The <strong>body</strong> portion of my webpage is becoming white when path for bootstrap is being provided (I have tried with both cdn and downloaded file path) as shown</p><p>This is before giving path for bootstrap</p><p><a href="http://ift.tt/1mFkFJe" rel="nofollow"><img src="http://ift.tt/1mFkFJe" alt="enter image description here" /></a></p><p>This is after giving path for bootstrap</p><p><a href="http://ift.tt/1YHObKe" rel="nofollow"><img src="http://ift.tt/1YHObKe" alt="enter image description here" /></a></p><p>Here is my HTML code (until body tag)</p><pre><br /><code> <!doctype html><br /> <html><br /><br /> <head><br /><br /> <title>Meme Engine</title><br /><br /> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"><br /><br /> <link rel="stylesheet" type="text/css" href="css/meme.css"><br /><br /><br /> <script src="js/jquery-2.1.4.min.js"></script><br /><br /> <script src="js/bootstrap.min.js"></script><br /><br /> </head><br /><br /> <body><br /><br /><br /> <h1 class="outer">Generate-Meme</h1> <br /><br /> <div class="outer"><br /><br /> </div><br /><br /> <br><br /><br /> <div id="box1"><br /><br /><br /> <input id="ifile" type="file" style="display:none" /><br /> <input type="button" class="myButton" value="Load" onclick="$('#ifile').click();"/><br /><br /> <br><br /><br /> </div><br /><br /> <div id="box2" style="display: none;"><br /><br /> <input id="topline" placeholder="TOP LINE"><br /> <br><br><br /> <input id="bottomline" placeholder="BOTTOM LINE"><br /> <br><br><br /><br /> <canvas id="c" width="0" height="0"></canvas><br /> <br><br><br /> <a href="#" class="buttonLink" id="downloadLink" download>Download </a> <!--download attribute http://ift.tt/1rHhbpa --><br /><br /><br /> <br><br><br /> <a href="">Make Another Meme!</a> <!-- href="" reloads the current page --><br /> </div><br /> <br><br><br /><br /> <br><br /><br /></body><br /></code><br /></pre><p>Here is my CSS code</p><pre><br /><code> html {<br /> height: 100%;<br /> background: red; /* For browsers that do not support gradients */ <br /><br /><br /><br /> background: #780206; /* fallback for old browsers */<br /> background: -webkit-linear-gradient(to left, #780206 , #061161); /* Chrome 10-25, Safari 5.1-6 */<br /> background: linear-gradient(to left, #780206 , #061161); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */<br /><br /> }<br /><br /> h1{<br /> color: white;<br /> }<br /><br /><br /><br /> body {<br /><br /> max-width: 60em;<br /> margin: 12px auto;<br /> border: 4px dotted black;<br /> border-radius: 2em;<br /> padding: 1em;<br /> text-align: center;<br /> }<br /> input,button {<br /> font-size: 1.25em;<br /> padding: 0.5em;<br /> display: inline-block;<br /> }<br /> input[type="file"] { /*element with specified attribute can be selected like this */<br /> border: 0.125em solid dodgerBlue;<br /> border-radius: 0.5em;<br /><br /><br /><br /> .outer{<br /> margin: 5;<br /><br /> padding:2.5ex;<br /> }<br /></code><br /></pre><p>` What can be the reason ? this is only seen when I add path for bootstrap.</p><br /><h2>Click here view more answers <a href="%20http://stackoverflow.com/questions/34470434/why-bootstrap-is-not-working-properly">http://ift.tt/1QS1Lvw</a></h2>
Nhận xét
Đăng nhận xét