html - Difficulties with background-image property -
i working bootstrap , change .jumbotron background image instead of default color. tried using "background-image: url("img/ponder.jpg");" , it's not working reason. have tried using , without quotation marks, , i've tried placing image in root folder.. still no luck.
here picture of file structure (root folder): https://i.gyazo.com/1cf9dcfd20224c4fce8fe4a775863ab1.png
and here code:
html:
<div class="jumbotron"> <div class="container text-center"> <h1>hello world</h1> <p>lorem ipsum dolor sit amet, consectetur adipiscing elit. integer @ pharetra eros, vel condimentum nunc. vivamus eget bibendum mauris. integer quis volutpat enim. duis id lorem feugiat, mattis sapien eget, luctus eros. pellentesque vestibulum tempus elit, sit amet luctus purus dictum vitae. suspendisse non aliquam augue. morbi sagittis mi @ turpis luctus pretium. vestibulum sit amet orci orci.</p> <button type=button class="btn btn-lg btn-primary">about us</button> </div> </div>
css:
.jumbotron { background-image: url(img/ponder.jpg); }
here's link image i'm trying display:
if has ideas should try, please let me know.
thanks reading.
using link works. maybe path referring wrong.try using ../img/ponder.jpg
.jumbotron { background-image: url(https://images.unsplash.com/photo-1441716844725-09cedc13a4e7?q=80&fm=jpg&s=c895a1f219d174952415b9b7a0811e62); }
Comments
Post a Comment