If the user wants to center an image in the editor the image gets the class aligncenter. Now I looked up the CSS for this class and put it in my theme. But there is a link on the image (default) and the image is only a thumbnail. So I can click the whole area but the image only takes up a piece of this area. I don't want this behavior. What can I do?
This is my CSS for the class aligncenter:
.aligncenter {
clear: both;
display: block;
margin-left: auto;
margin-right: auto;
}
This is the HTML-Code:
<a href="http://www.domain.com/wp-content/uploads/2012/04/F2_20_gr.jpg" class="fancybox" rel="fancybox" title="System">
<img width="150" height="150" alt="" src="http://www.domain.com/wp-content/uploads/2012/04/F2_20_gr-150x150.jpg" title="System" class="size-thumbnail wp-image-91 aligncenter">
</a>

aligncenter. What is the common way to handle this class? I think there is more to do than defining the CSS and therefore a programming question. – testing Apr 30 '12 at 16:27