Background image doesn't load
-
Hello everyone.
I want to include an image into my theme like this:HTML: (image will be defined in the CSS from “balken”)
<div class="container"> <ul> <li><div id="unternehmen"><a href="#">Unternehmen</a></div></li> <li><div id="beratung"><a href="#">Beratung</a></div></li> <li><div id="dienstleistung"><a href="#">Dienstleistung</a></div></li> <li><div id="seminare"><a href="#">Seminare</a></div></li> <li><div id="wissensportal"><a href="#">Wissensportal</a></div></li> <li><div id="kontakt"><a href="#">Kontakt</a></div></li> <div id="balken"></div> </ul> </div>CSS:
#balken{ background-image: url(./images/balken2.png); background-repeat: no-repeat; position: relative; top: 50px; left: 198px; }If I do it this way the image doesn’t load. But when I write some text in the HTML like this:
<div id="balken">Testing</div>then the image loads. How can I make the image to be there without writing text? I don’t understand it :/
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Background image doesn't load’ is closed to new replies.