Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click & hover events fire for transparent corner of cicles #46

Open
justinormont opened this issue Apr 22, 2013 · 0 comments
Open

Click & hover events fire for transparent corner of cicles #46

justinormont opened this issue Apr 22, 2013 · 0 comments
Assignees

Comments

@justinormont
Copy link
Collaborator

Images/divs/etc in webkit always render html elements as a box. The circles are created by border-radius: 50% css. The areas out side the circle should not be clickable and should not create an on hover event.

Impact: user gets confused when they mean to click on one circle photo but are actually click on the transparent part of another circle photo.

Here's one solution:
http://tympanus.net/codrops/2011/11/22/hover-and-click-trigger-circular-elements/

Another solution:
http://stackoverflow.com/questions/9760692/button-border-radius-and-cursor

@ghost ghost assigned jeremybenaim Apr 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants