Created
July 13, 2014 01:42
-
-
Save kshoufer/86563e80711864bb3e6c to your computer and use it in GitHub Desktop.
SVG image wrapped in an anchor tag with hover state.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTML | |
| <a href=”http://google.com” > | |
| <svg class=”myCSSClass”> | |
| xmlns="http://www.w3.org/2000/svg" | |
| xmlns:xlink="http://www.w3.org/1999/xlink"> | |
| <rect x="10" y="10" height="100" width="100" style="stroke:#ff0000; fill:#0000ff"/> | |
| </svg> | |
| </a> | |
| CSS | |
| .myCSSClass:hover { | |
| fill:#00ff00; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment