HEATH3N HEATH3N - 3 years ago 106
HTML Question

HTML image not loading

I have an image called

flash_icon.png
that I'd like to put in a
div
. When I load my site in Dreamweaver, the image shows up fine. However, as soon as I preview the site in the browser, the image disappears. I've checked a hundred times to make sure the file names and sources are correct and they are, but I don't know why they're not loading. The background image loads just fine and it's in the same folder.

<div id="mainmenu"
<img id="flash" src="assets/flash_icon.png"
height="100%"
/>
</div>

Answer Source

Try closing your opening div tag:

<div id="mainmenu">
  <img id="flash" src="assets/flash_icon.png" height="100%" />
</div>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download