Title: Cannot Remove Border Around Images Within Posts
Last modified: August 19, 2016

---

# Cannot Remove Border Around Images Within Posts

 *  Resolved [markwilliamsjr](https://wordpress.org/support/users/markwilliamsjr/)
 * (@markwilliamsjr)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/)
 * I have been having the most difficult time trying to figure out how to get rid
   of image borders within posts. I have tried just putting “border=0” in the HTML
   code, I made sure the border option in advanced image settings was set to 0, 
   and they are not linked images.
 * So the only thing that I think it may be would be coding within the style sheet.
   However, I cannot find anything to indicate this. If anyone would be so kind 
   as to give my theme’s style sheet a look…I would greatly appreciate the help.
 * [http://www.drawnthatway.com](http://www.drawnthatway.com)
 * (excuse the mess…we are just getting underway)

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/page/2/?output_format=md)

 *  [transpersonal](https://wordpress.org/support/users/transpersonal/)
 * (@transpersonal)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241362)
 * I don’t see anything other than a single page with an image and that image doesn’t
   have a border (using firefox).
 * Try putting this in your style.css (at the very bottom)
 * img {
    border: none; }
 *  Thread Starter [markwilliamsjr](https://wordpress.org/support/users/markwilliamsjr/)
 * (@markwilliamsjr)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241363)
 * Ahh, Trans…I’m sorry. I didn’t think I would get a reply this quickly. I have
   since taken down the “Coming Soon” page. So if you wanna check it out again.
 *  Thread Starter [markwilliamsjr](https://wordpress.org/support/users/markwilliamsjr/)
 * (@markwilliamsjr)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241368)
 * And I tried what you suggested and that did not work. I also tried to put 0 instead
   of none, still not doing the trick.
 *  [transpersonal](https://wordpress.org/support/users/transpersonal/)
 * (@transpersonal)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241369)
 * Here try this, in style.css find:
 *     ```
       .the_content img {
       -moz-background-clip:border;
       -moz-background-inline-policy:continuous;
       -moz-background-origin:padding;
       background:white none repeat scroll 0 0;
       border:1px solid #DDDDDD;
       padding:3px;
       }
   
       change to:
   
       .the_content img {
       -moz-background-clip:border;
       -moz-background-inline-policy:continuous;
       -moz-background-origin:padding;
       background:white none repeat scroll 0 0;
       }
       ```
   
 *  Thread Starter [markwilliamsjr](https://wordpress.org/support/users/markwilliamsjr/)
 * (@markwilliamsjr)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241373)
 * Trans, I don’t see code like that in the style.css
 * The only things close are the following two items:
 * .the_content img {
    background:white; border:1px solid #
 * and
 * .the_content img {
    max-width: 600px; width: expression(this.width > 600 ? 600:
   true); }
 *  [transpersonal](https://wordpress.org/support/users/transpersonal/)
 * (@transpersonal)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241375)
 * I think I got that because I’m using firebug – I don’t have actual access to 
   your style.css file so I see it a little differently.
 * Try changing:
 * .the_content img {
    background:white; border:1px solid #
 * to:
 * .the_content img {
    background:white; border: none; padding: 0; }
 *  Thread Starter [markwilliamsjr](https://wordpress.org/support/users/markwilliamsjr/)
 * (@markwilliamsjr)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241378)
 * Yeah, still didn’t change anything.
 * Thank you very much for taking the time to look into it though. Much appreciated.
   If you can think of anything else I would be glad to try.
 *  [transpersonal](https://wordpress.org/support/users/transpersonal/)
 * (@transpersonal)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241380)
 * How about this, this type of thing is very difficult to do without looking at
   the actual stylesheet. So paste all the contents of your style.css here and we’ll
   find a solution a lot quicker:
 * [http://pastebin.com/](http://pastebin.com/)
 *  Thread Starter [markwilliamsjr](https://wordpress.org/support/users/markwilliamsjr/)
 * (@markwilliamsjr)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241384)
 * You got it! Thanks.
 * It’s under my WP screen name.
 *  [transpersonal](https://wordpress.org/support/users/transpersonal/)
 * (@transpersonal)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241386)
 * Try this:
 * [http://pastebin.com/m6994974c](http://pastebin.com/m6994974c)
 * If it doesn’t work let me know.
 *  Thread Starter [markwilliamsjr](https://wordpress.org/support/users/markwilliamsjr/)
 * (@markwilliamsjr)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241416)
 * Yeah Trans, I pasted the whole thing…it still didn’t change anything. Thank you
   though.
 *  [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241422)
 * markwilliamsjr,
 * Set your site live again so we can take another look.
 *  [Wimbledon](https://wordpress.org/support/users/wimbledon/)
 * (@wimbledon)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241427)
 * This works for me to remove images around JPEGs:
 * Make this a CSS insert:
 * /* Optional images with no borders */
    .customImage img { padding: 0px; border:
   none; -moz-border-radius: 0px; -khtml-border-radius: 0px; -webkit-border-radius:
   0px; border-radius: 0px; }
 * And use it like this when you want no border:
 * <div class=”customImage”>
    — post content here — </div>
 *  Thread Starter [markwilliamsjr](https://wordpress.org/support/users/markwilliamsjr/)
 * (@markwilliamsjr)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241473)
 * Wimbledon, thanks for the suggestion…that didn’t work for me either.
 * For doc4 — and anyone else who may want to help — I have made the site live again.
   Visit this page here to view post images with border.
 *  Thread Starter [markwilliamsjr](https://wordpress.org/support/users/markwilliamsjr/)
 * (@markwilliamsjr)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/#post-1241474)
 * Ok, I did put a link…but I don’t see it. So here:
 * [http://www.drawnthatway.com/2009/10/11/78/](http://www.drawnthatway.com/2009/10/11/78/)

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/page/2/?output_format=md)

The topic ‘Cannot Remove Border Around Images Within Posts’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 20 replies
 * 7 participants
 * Last reply from: [greenwizard](https://wordpress.org/support/users/greenwizard/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/cannot-remove-border-around-images-within-posts/page/2/#post-1241657)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
