Title: Remove border
Last modified: August 20, 2016

---

# Remove border

 *  [nicolekuderer](https://wordpress.org/support/users/nicolekuderer/)
 * (@nicolekuderer)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/remove-border-1/)
 * Having massive problems to remove border around images. Tried everything but 
   can’t find anything in my styles.
    It only seems to happen for gallery images,
   single images are fine.
 * [http://www.nicolekuderer.com](http://www.nicolekuderer.com)
 * Please help!

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

 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/remove-border-1/#post-2292103)
 * seems as if that border is coming from your page as i looked at your source code
   and I see style in body that is bit odd as it should in head tag or style.css
   file
 *     ```
       <style type='text/css'>
       			#gallery-1 {
       				margin: auto;
       			}
       			#gallery-1 .gallery-item {
       				float: left;
       				margin-top: 10px;
       				text-align: center;
       				width: 50%;
       			}
       			#gallery-1 img {
       				border: 2px solid #cfcfcf;
       			}
       			#gallery-1 .gallery-caption {
       				margin-left: 0;
       			}
       		</style>
       ```
   
 *  Thread Starter [nicolekuderer](https://wordpress.org/support/users/nicolekuderer/)
 * (@nicolekuderer)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/remove-border-1/#post-2292104)
 * thanks, so what can I do to remove it?
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/remove-border-1/#post-2292105)
 * You will need to find where the code above is coming from with in your theme 
   or gallery plugin if used.
 * this is the one adding border
    #gallery-1 img { border: 2px solid #cfcfcf;
 *  Thread Starter [nicolekuderer](https://wordpress.org/support/users/nicolekuderer/)
 * (@nicolekuderer)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/remove-border-1/#post-2292106)
 * I already looked in most of the templates, do you have a tipp where to start,
   or is there a way to search for it? (Sorry, I am not a developer, just a designer)
 * Or can I add something in my css to overrule that code?
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/remove-border-1/#post-2292107)
 * I see that this code is repeated so you must getting them a external source.
 *  Thread Starter [nicolekuderer](https://wordpress.org/support/users/nicolekuderer/)
 * (@nicolekuderer)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/remove-border-1/#post-2292108)
 * what source could that be?
 *  Thread Starter [nicolekuderer](https://wordpress.org/support/users/nicolekuderer/)
 * (@nicolekuderer)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/remove-border-1/#post-2292114)
 * Can I add something in my css to overrule that code?
 *  [Big Bagel](https://wordpress.org/support/users/big-bagel/)
 * (@big-bagel)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/remove-border-1/#post-2292131)
 * It looks like your using the normal gallery shortcode, so your theme is probably
   adding that CSS through a function in functions.php. If you just want a quick
   CSS rule to override this, you can add this to the bottom of your theme’s style.
   css:
 *     ```
       .gallery img {
           border: none !important;
       }
       ```
   
 *  Thread Starter [nicolekuderer](https://wordpress.org/support/users/nicolekuderer/)
 * (@nicolekuderer)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/remove-border-1/#post-2292132)
 * amazing! this worked! thanks so much, you guys are great!!!

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

The topic ‘Remove border’ is closed to new replies.

## Tags

 * [border](https://wordpress.org/support/topic-tag/border/)
 * [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: [nicolekuderer](https://wordpress.org/support/users/nicolekuderer/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/remove-border-1/#post-2292132)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
