I attempted to include an image in a footer div, but I have not been successful with the following approach:
Here is the HTML code I tried:
<footer>
<div class="imagenFooter" style="background-image: url("./images/footer-bg.jpg");"></div>
<div class="footer-fluid" itemscope="" >
<div class="container">
<img class="logo_footer" alt=""><span class="direccionFooter" itemprop="address"></span>
<nav class="enlacesFooter">
I expected the image to appear in the Image footer section based on my CSS attempts below, but it did not work.
.imagenFooter {
background-image: url('/images/footer-bg.jpg');
background-repeat: no-repeat;
width: 100%;
height: 100%;
}
I need to add the image using CSS only. Any help would be greatly appreciated!