I'm trying to rotate an image by a random angle using the solution suggested here: How to add a rotated image in CSS?
The problem is that the image ends up going out side the bounds of the location it was originally supposed to be at times. This shows what I mean: http://jsfiddle.net/jBHRH/82/ See how the corners of the image are cut off?
Is there a way with CSS or HTML to keep this from happening? Maybe something to do with background-size: contain;
?
EDIT: I'm displaying this in a table cell with borders. So, when it's rotated, it ends up going beyond the bounds of the borders.