开发者

Cufon canvas partially covers a clickable area

开发者 https://www.devze.com 2023-01-14 22:13 出处:网络
I\'m experiencing a problem with Cufon text-replacement library. Take a look at: http://www.dgform.com/new/

I'm experiencing a problem with Cufon text-replacement library.

Take a look at:

http://www.dgform.com/new/

Next to the "Twitter" header there's a bird icon, which should be clickable, unfortunately the Cufon c开发者_StackOverflow中文版anvas - which strangely takes a lot of blank space after the last letter - lays partially on the image, so that it becomes clickable only a tiny portion on the right (a sniper's job to find it ;) ).

Any idea on how to solve it?


Try putting this on the a tag that contains the bird icon:

h1.twitter a {
   position: relative;
   z-index: 2;
}

This will put the a tag above the cufon text.

0

精彩评论

暂无评论...
验证码 换一张
取 消