Question: In my website i use svg elements. Sometimes i need them to be clickable, therefore i want pointer cursor over them.

However adding css class or style

```
cursor: pointer;

```

not work.

That's the example element

```
<object id="male2" type="image/svg+xml" data="course/ani/male2.svg" style="left: 87px; bottom: 56px;" es-character="male2"></object>

```

It seems like it just not worki with svg. Anyone know how to fix, or how to go around it?

Answer: 
If adding "`cursor: pointer`" directly to the `svg` element does not work, you can either try to add an transparent element (Pseudo elements directly on the `object` tag do not work) with the same dimensions as the SVG which is absolutely positioned over the SVG. 

```css
a.svg-cursor:before {
content: "";
display: block;
position: absolute;
background-color: transparent;
cursor: pointer;
/* plus width and height of the SVG */
}
```

```html
<a href="#" class="svg-cursor">
<object id="male2" type="image/svg+xml" data="course/ani/male2.svg" es-character="male2"></object>
</a>
```

Or you can take an `img` instead of `object` and add the "`cursor: pointer`"-style to the img:

`<img id="male2" src="course/ani/male2.svg" style="left: 87px; bottom: 56px;" alt="Description" />`
One of the simplest solutions may be to use img tag instead of object tag

```
<img src="course/ani/male2.svg" style="left: 87px; bottom: 56px;"  />

```

although, ideally you can embed the svg in the html. 
That doesn't let you cache the svg files, so I found using javascript to load the svg file as text and insert into the DOM allowed for caching and still got the SVG directly into the DOM so it could use all the css styles from your page.