spoloso spoloso - 5 months ago 29
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?

<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.