Title: Image alignment problems
Last modified: August 19, 2016

---

# Image alignment problems

 *  Resolved [capeinfo](https://wordpress.org/support/users/capeinfo/)
 * (@capeinfo)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/image-alignment-problems/)
 * I think I’ve read everything I can find about image alignment and nothing works
   for me. Can anyone spot errors at [http://capeinfo.com/wine/](http://capeinfo.com/wine/)
   or tell me how to get the text wraparound working. It’s correct in the admin 
   section but not for public views.
 * Thank you!

Viewing 1 replies (of 1 total)

 *  Thread Starter [capeinfo](https://wordpress.org/support/users/capeinfo/)
 * (@capeinfo)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/image-alignment-problems/#post-1037791)
 * Adding the following to the CSS fixed it!
 *     ```
       img.centered, .aligncenter, div.aligncenter {
       	display: block;
       	margin-left: auto;
       	margin-right: auto;
       	}
   
       img.alignright {
       	padding: 4px;
       	margin: 0 0 2px 7px;
       	display: inline;
       	}
   
       img.alignleft {
       	padding: 4px;
       	margin: 0 7px 2px 0;
       	display: inline;
       	}
   
       .alignright {
       	float: right;
       	}
   
       .alignleft {
       	float: left;
       	}
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Image alignment problems’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [capeinfo](https://wordpress.org/support/users/capeinfo/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/image-alignment-problems/#post-1037791)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
