I want to add a background image to only a specific part of my website, using the image as an id called "fruit." However, the image is not showing up. Here is the code I have:
<div class="p-1 text-center bg-light" id="fruit">
<div class="col-md-6 mx-auto my-5">
<h1 class="display-4 font-weight-normal">TrendyEats</h1>
<p class="lead font-weight-normal">The Latest Food Trends</p>
<a class="btn btn-outline-secondary" href="#">Login</a>
<p class="small pt-4">blablabla </p>
</div>
</div>
Here is the CSS for the "fruit" id:
#fruit {
background-image: url('/Pictures/fruits.jpg');
alt:"woops";
}
The "alt" attribute is also not showing up.
Any assistance would be greatly appreciated. Thank you!
Update: Issue resolved, I needed to write "Pictures/fruits.jpg" instead of "/Pictures/fruits.jpg"