By default in HTML, <a> tag refers to an anchor tag which is used to create a link to another document using the href attribute or to create a bookmark inside a document by using the name attribute. Here is a nice way you can give button like pressing effect to any link. It can be done by the following way.
<a href="http://www.w3c.org">Go to W3C</a>
<style>
a:active{
position:relative;
top:1px;
left:1px;
outline:0;
}
</style>
So as you can see the a link is given a slightly moved its top and left when clicked. This gives it a pressing effect.
No comments:
Post a Comment