1

I am working with an html code. I am trying to make image as a hyperlink.But it works only without the div tag.How can i include image link within the div tag?

Here is the code i am using

 <div class="image">

     <a href=""><img src="images/01 (22).jpg" width="360" height="200" alt=""></a>

 </div>

Thanks..

1
  • post your css for div.image class. and check if theimg src path is correct. Oct 22, 2013 at 16:45

1 Answer 1

3

Use the DIV inside link (a);

<a href=""> 
<div class="image">
<img src="images/01 (22).jpg" width="360" height="200" alt=""> 
</div>
</a>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.