Viewing 8 replies - 1 through 8 (of 8 total)
  • It’s being added by the gallery’s own automatic CSS within the page. Try adding:

    .gallery img {border:none !important;}

    to your theme’s stylesheet.

    Thread Starter kjagen

    (@kjagen)

    OK.
    Where is that automatic css?

    Have a look at your page source. It’s added by the gallery shortcode.

    Thread Starter kjagen

    (@kjagen)

    So I looked in the lightbox 2 csss. But it was not there
    Is it a style in a php file?

    So i can\t style the wp gallery thumbs in the theme style.css?

    Look in your page source.

    So i can’t style the wp gallery thumbs in the theme style.css?

    You might be able to apply styling if you append every property value with !important.

    Thread Starter kjagen

    (@kjagen)

    I can find the source code
    but an`t find where to edit!!

    <style type=’text/css’>
    #gallery-1 {
    margin: auto;
    }
    #gallery-1 .gallery-item {
    float: left;
    margin-top: 10px;
    text-align: center;
    width: 25%; }
    #gallery-1 img {
    border: 2px solid #cfcfcf;
    }
    #gallery-1 .gallery-caption {
    margin-left: 0;

    Thread Starter kjagen

    (@kjagen)

    I`ve tried this.
    It won`t do.
    I just want a simple border to my thumbs. These are to wide

    .gallery img {border:none !important;}

    .gallery-icon {
    padding:1px 1px !important;
    border:1px solid #999 !important;
    margin:2px 2px 2px 2px !important;
    }

    Thread Starter kjagen

    (@kjagen)

    I fixed it in a way now.
    But the bottom border have more padding than the rest. I tried most but it won`t change

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can`t find my gallery style code..’ is closed to new replies.