I've created a circle button using border-radius. My issue is that when using the following code:
button:hover {cursor: pointer}
the cursor will be a pointer even outside the circle ( but inside the "rectangular div"). Im pretty sure I need javascript to solve this (althou I've included the CSS tag in case im wrong), but other than that Im blank, if anyone could Point me in the right direction, it'd be great!
thanks.
I've created a circle button using border-radius. My issue is that when using the following code:
button:hover {cursor: pointer}
the cursor will be a pointer even outside the circle ( but inside the "rectangular div"). Im pretty sure I need javascript to solve this (althou I've included the CSS tag in case im wrong), but other than that Im blank, if anyone could Point me in the right direction, it'd be great!
thanks.
You can use SVG for that. SVG is cross browser capable.
<svg>
<circle cx="40" cy="40" r="24"/>
</svg>
circle:hover{
cursor: pointer;
background: yellow;
}
DEMO: http://jsfiddle/DerekL/Jpnre/
MDN: https://developer.mozilla/en/CSS/Getting_Started/SVG_graphics