I have a web page with a series of rows and columns, each column has an icon or image file. When an image is touched it will change color. I am currently doing this with JQuery and swapping out a new image with the new color.
I was thinking that I could do the same with SVG objects and then just change the style class for the object. The problem that I have been having is getting my SVG object to actually sit in the table cells. My SVG code:
<svg>
<path d="m 524.9 304 c 53.3 0 96.1 12.7 96.1 28.6 l 0 78 c 0 15.8 -42.9 28.6 -96.1 28.6 -53.3 0 -96.1 -12.7 -96.1 -28.6 l 0 -78 c 0 -15.8 42.9 -28.6 96.1 -28.6 z" id="seat" />
</svg>
This draws the object in the middle of my page even though I put this inside a <td></td>
.
Is there a way to center an path like there is a shape?