• +91 9723535972
  • info@interviewmaterial.com

CSS Interview Questions and Answers

Related Subjects

Question - How do you make a whole div into a link?

Answer - You can't put 'a' tags around a div, but you can do this with javascript : HTML

... stuff goes here ...
If you want to use an empty div with a background image as a link instead of putting your image into the html, you can do something like this: CSS #empty { background-image:url(wine.jpg); width:50px; height:50px; margin:auto; } #empty a { display:block; height:50px; } * html #empty a { display:inline-block; } HTML

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners