Viewing 9 replies - 1 through 9 (of 9 total)
  • 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

    (@nicolekuderer)

    thanks, so what can I do to remove it?

    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

    (@nicolekuderer)

    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?

    I see that this code is repeated so you must getting them a external source.

    Thread Starter nicolekuderer

    (@nicolekuderer)

    what source could that be?

    Thread Starter nicolekuderer

    (@nicolekuderer)

    Can I add something in my css to overrule that code?

    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

    (@nicolekuderer)

    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.