spoloso spoloso - 1 year ago 52
CSS Question

Image not showing in header when added in div

I have Below code in my header.html

<div class="col-md-3">
<div class="logo">
<a href="http://example.com/themes/default/images/logo.png"></a>

But it's not showing my png image in header, Is the way adding image path in div is wrong?

Answer Source
<img src="http://example.com/themes/default/images/logo.png">

That is how you use an image. You are placing a link to the image. Also, you are not seeing anything because your <a></a> tags are empty. If you write something between them, you can click on it, to see the image you linked.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download