Reputation: 183
How to made, that when you click on <div id="fb_logo"></div>
it's open any page?
Upvotes: 1
Views: 48
Reputation: 6328
Try this:
<div id="fb_logo target="_blank""><a href="Your page link"></a></div>
Here is jsfiddle link :https://jsfiddle.net/wuq0tqgp/1/
Upvotes: 1
Reputation: 719
You can do it by placing the div tag inside the link tag
<a href="http://YourPageLink.com/" target="_blank">
<div id="fb_logo"></div>
</a>
https://jsfiddle.net/djsreeraj/n5n5c44y/1/
Here is the snippet:
#fb_logo{
background:#ccc;
width:40px;
height:40px;
overflow:hidden;
}
#fb_logo a{
display:block;
text-indent:999px;
}
<a href="http://google.com/" target="_blank"><div id="fb_logo"></div></a>
Upvotes: 0