spoloso spoloso - 8 months ago 36
CSS Question

Image not show in header when add 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 not show my png image in header, there is any wrong adding image path in div?

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.