Background-image not showing

Background-image not showing
0

#1

Can someone help me out with whats wrong with this code.

.home {
background-image: url(http://www.blauwgedacht.nl/afbeeldingen/77627.jpg);
}

Here is a link to the pen: http://codepen.io/StitchXtreme/pen/qNZWAV


#2

Html line 11 misplaced =


#3

Haha, @ first i didn’t saw it but that still doesn’t solve the issue. I used a href="http://www.blauwgedacht.nl/afbeeldingen/77627.jpg"a just to check if the image would be shown and yes that works just fine. I even used the ID, home to look if that makes a difference but nope. Somehow the css isn’t working. As the website blauwgedacht.nl is mine i tryed to show the image through a div and css but didn’t work as well.

One thing to mention is that when i style my element a with background-size: cover; it doesn’t work.

I don’t see the problem.

Thanks for your time btw Jenovs, means allot!


#4

Your image isn’t showing because your home div is empty. Add some height or content.


#5

Thanks for your time once again. I now know what to do :slight_smile: