You are hereMake a Div a clickable area

Make a Div a clickable area


By admin - Posted on 18 January 2011

How to make a div a Clickable area?

Display facebook, twitter or linkedIn icons using divs:


.footer  .social .twitter  { float:left;   background: url(../images/twitter-icon.gif) no-repeat left;  width: 35px; height:34px;  }
.footer  .social .facebook { float:left;   background: url(../images/facebook-icon.gif) no-repeat left; width: 35px; height:34px;   }

/* Make Divs clickable */

.footer  .social .twitter a  { display: block; height: 100%; width: 100%; }
.footer  .social .facebook a { display: block; height: 100%; width: 100%; }

How to use?