Forums

Can`t find my gallery style code.. (9 posts)

  1. kjagen
    Member
    Posted 2 years ago #

    Can anyone help
    There is a grey border on the thumbs right now but I don`t now where it comes from

    http://www.kjagen.com/2009/02/ringsaker-mountains-january-09/

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    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.

  3. kjagen
    Member
    Posted 2 years ago #

    OK.
    Where is that automatic css?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

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

  5. kjagen
    Member
    Posted 2 years ago #

    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?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    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.

  7. kjagen
    Member
    Posted 2 years ago #

    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;

  8. kjagen
    Member
    Posted 2 years ago #

    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;
    }

  9. kjagen
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.