Title: Centering Image Links
Last modified: August 20, 2016

---

# Centering Image Links

 *  [kitkaplan](https://wordpress.org/support/users/kitkaplan/)
 * (@kitkaplan)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/centering-image-links/)
 * please see the STORE pages in [http://dragonseyegems.com/about-us/metaphysical-healing-stones](http://dragonseyegems.com/about-us/metaphysical-healing-stones)
   
   I imported large images as thumbnails with a default link to the original image.
   That image is fl left. Is there any way to center it?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/centering-image-links/#post-2783250)
 * Try using Firefox with the Firebug add-on for this kind of CSS work.
    [http://getfirebug.com/](http://getfirebug.com/)
 *  Thread Starter [kitkaplan](https://wordpress.org/support/users/kitkaplan/)
 * (@kitkaplan)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/centering-image-links/#post-2783387)
 * Thanks esmi
 * I tried Firebug and the CSS for the page is
    img {     display: block; }
 * I added to the CSS
    img {     display: block; margin-right: auto; margin-left:
   auto; } and in firebug editor this works but makes the image smaller, however,
   it does not work when I add this to the actual CSS.
 * I have searched the CSS and there is no code that is just IMG.
 * I think I need more information.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/centering-image-links/#post-2783388)
 * I’m sorry but it is beyond the scope of these forums to deal with basic CSS issues.
   Try a dedicated CSS resource such as [http://www.css-discuss.org/](http://www.css-discuss.org/)
   instead.
 *  Thread Starter [kitkaplan](https://wordpress.org/support/users/kitkaplan/)
 * (@kitkaplan)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/centering-image-links/#post-2783392)
 * Thanks, thats where I got the code. I may have to live with the image fl-left.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/centering-image-links/#post-2783393)
 * You can more the image over by adding a right margin to the `<p>` tag that contains
   all those images — this is the relevant CSS code:
 *     ```
       .art-postcontent p {
           margin: 12px 0;
       }
       ```
   
 * change it to this — change the 30 to whatever you want the margin to be
 *     ```
       .art-postcontent p {
           margin: 12px 0 0 30px;
       }
       ```
   
 *  Thread Starter [kitkaplan](https://wordpress.org/support/users/kitkaplan/)
 * (@kitkaplan)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/centering-image-links/#post-2783444)
 * Thanks WPyogi
    this did not seem to work. I tried changing various margins with
   no result. I also tried replacing margin with this
 *  display: block; margin-right: auto;
    margin-left: auto;
 * to no effect.
 * This is not a post paragraph but an image link. Could that be the problem?
 * Thanks again
 *  Thread Starter [kitkaplan](https://wordpress.org/support/users/kitkaplan/)
 * (@kitkaplan)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/centering-image-links/#post-2783468)
 * Is there a plugin that might display a larger image from the thumbnail. CSS does
   not seem to work on this particular thing.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/centering-image-links/#post-2783469)
 * Don’t know about a plug in but, if you still want to center them, try changing
   this CSS — add auto to the margin:
 *     ```
       .art-article img, img.art-article, .art-block img, .art-footer img {
           border-color: #B2C2D1;
           border-style: solid;
           border-width: 1px;
           margin: 7px auto;
       }
       ```
   
 * It works in my browser using Firebug.
 *  Thread Starter [kitkaplan](https://wordpress.org/support/users/kitkaplan/)
 * (@kitkaplan)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/centering-image-links/#post-2783476)
 * Sorry, no luck on this one either. I tried a few things with this margin and 
   the image is still jammed into the left corner.

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

The topic ‘Centering Image Links’ is closed to new replies.

## Tags

 * [centering images](https://wordpress.org/support/topic-tag/centering-images/)
 * [images](https://wordpress.org/support/topic-tag/images/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [kitkaplan](https://wordpress.org/support/users/kitkaplan/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/centering-image-links/#post-2783476)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
