Title: Image Align None
Last modified: August 22, 2016

---

# Image Align None

 *  Resolved [thekentuckygent](https://wordpress.org/support/users/thekentuckygent/)
 * (@thekentuckygent)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-align-none/)
 * Working on [thekentuckygent.com](http://thekentuckygent.com), and I’m trying 
   to remove the center alignment on all photos that have been attached to posts.
 * Not having any luck doing so with CSS. Any help would be appreciated!

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [CrouchingBruin](https://wordpress.org/support/users/crouchingbruin/)
 * (@crouchingbruin)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-align-none/#post-5937831)
 * On the few posts that I looked at, it seemed that your images are all full width,
   so it’s hard to tell that there’s any sort of alignment associated with them.
   However, if you add a rule like this to your custom CSS:
 *     ```
       .hentry img {
           margin-left: initial;
           margin-right: initial;
       }
       ```
   
 * That should override the **aligncenter** class (as well as **alignleft** and **
   alignright**).
 *  Thread Starter [thekentuckygent](https://wordpress.org/support/users/thekentuckygent/)
 * (@thekentuckygent)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-align-none/#post-5937836)
 * That did it! Thanks so much – I really appreciate it.
 * One last question that kind of goes along with this CSS – any way to use CSS 
   to expand the width of the image to 705px vs the 680px that is right now?
 *  [CrouchingBruin](https://wordpress.org/support/users/crouchingbruin/)
 * (@crouchingbruin)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-align-none/#post-5937838)
 * Add this rule:
 *     ```
       img.size-auto, img.size-full, img.size-large,
       img.size-medium, .attachment img, .widget-container img {
          max-width: 705px;
       }
       ```
   
 *  [CrouchingBruin](https://wordpress.org/support/users/crouchingbruin/)
 * (@crouchingbruin)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-align-none/#post-5937839)
 * Hmm, wait, that didn’t do it. Just a sec…
 *  [CrouchingBruin](https://wordpress.org/support/users/crouchingbruin/)
 * (@crouchingbruin)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-align-none/#post-5937840)
 * OK, slight change, need to add a **width** property, too:
 *     ```
       img.size-auto, img.size-full, img.size-large,
       img.size-medium, .attachment img, .widget-container img {
          max-width: 705px;
          width: 100%;
       }
       ```
   
 *  Thread Starter [thekentuckygent](https://wordpress.org/support/users/thekentuckygent/)
 * (@thekentuckygent)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-align-none/#post-5937849)
 * Indeed a hero! Thanks a million.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Image Align None’ is closed to new replies.

## Tags

 * [alignment](https://wordpress.org/support/topic-tag/alignment/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [image](https://wordpress.org/support/topic-tag/image/)

 * 6 replies
 * 2 participants
 * Last reply from: [thekentuckygent](https://wordpress.org/support/users/thekentuckygent/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/image-align-none/#post-5937849)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
