If you want to add a background image, <img> not suitable. Use the background-image property.
<header> <div class="container"> <div class="row" style="background:transparent url('img/profile.png') no-repeat center center /cover"> <div class="col-lg-12"> <div class="intro-text"> <span class="name">HEADING</span> <hr class="star-light"> <span class="skills">TEXT</span> </div> </div> </div> </div> </header>
Please note that adding an inline style is not recommended; I used it demonstratively here. The right way to style your div would be to add a specific class or identifier to it and style it inside your CSS files.
In the above snippet, I used the background shorthand property to set the background-image . This transcript allows you to set the background values โโof color , image , position , repeat , origin , clip and size in one ad. They should be in that order. You can skip any of them, and size should have the / prefix.
Tip: to remember their order, I use the term procs (should be ciprocs , but procs easier to associate, and the fact that color and image are the first two are also easy).
source share