• Resolved ShenPixel

    (@shenpixel)


    I’ve been using NextGEN Gallery for several years with NGG Custom Fields to link my logos and tags back to the original creators sites. I’ve had the galleries as I’ve wanted until I upgraded NextGEN tonight. I’ve been behind due to major illness and surgery. I’m trying to get things taken care of before my next surgery in ten days and since the new version is different my css fix that I’ve found here no longer works. What I’ve tried has not centered aligned the column or taken away the borders/hover from the images. If I cannot get it back I’m going to have to look for another solution and say goodbye to NextGEN

    Here’s my site: http://www.lovelightpixels.com/wp/?page_id=1413

    I want the column centered aligned with no border or hover on the images.

    I’ve tried several variations of the example below from w3schools.com:

    .center {
        margin-left: auto;
        margin-right: auto;
        width: 70%;
        background-color: #b0e0e6;
    }

    Thanks in advance for any help.

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 12 replies - 1 through 12 (of 12 total)
  • @shenpixel, You can’t have help in a forum for a CSS question if you don’t enable the right button.
    (BTW, it is totally useless to disable it, anyone can copy your pictures even without using the right button).

    Thread Starter ShenPixel

    (@shenpixel)

    I don’t understand what you are saying. I’m not worried about them copying my pictures, I have code embedded that takes care of that, that is totally off topic from my original post. What I am asking for is help to center align the images in the column and to remove the hover css.

    @shenpixel, I am saying that it is not possible to help you from a support forum without using a tool (like Firebug), which obviously can’t works on your page because you have disabled the right button. If you want some help with CSS, you must temporarily remove the code (or disable the plugin) that makes that thing.

    (Furthermore, I suggested you that protecting images with that system is completely useless, and it is very annoying only for the “honest” user. One example: if someone wants to boomark your site, it’s no possible with a click, and things like that. On the other hand, whoever wants to save locally your pictures can do it easily taking the addresses from the source. The browser has already downloaded images in the user’s PC since they are visible, so anyone can just copy the interested URL, open it in a new tab and save it from there. Example: http://www.lovelightpixels.com/wp/wp-content/gallery/purchases/avawitchpktubelicense.gif.)

    Thread Starter ShenPixel

    (@shenpixel)

    Thanks for your reply, I understand what you are saying and I agree but my site is a pixel site, and to use and display the graphics I do, I must have the protection scripts enabled or I can loose my license’s and memberships.

    I use Chrome so I go to tools/etc so I was confused (I’ve been extremely ill and am on a lot of medication and have not coded css or php in years and have forgotten a lot).

    I will hide all my galleries except the one linked here and disable the scripts, thanks for your help.

    @shenpixel, write In Other options > Styles
    For centering:

    .ngg-galleryoverview {
    text-align:center;
    }
    .ngg-gallery-thumbnail-box {
    float:none !important;
    display:inline-block;
    }

    Remove border:

    .ngg-gallery-thumbnail img {
    border: none !important;
    }

    Remove hover:

    .ngg-gallery-thumbnail img:hover {
    background-color: none;
    }

    Save, and it should works, you may need to clear cache. If hover-remove doesn’t work, add “!important”.

    Thread Starter ShenPixel

    (@shenpixel)

    Thank you it did everything but the hover and border remains.

    @shenpixel, the border is no longer there, I don’t see it no more so empty your cache.
    For hover, try instead:

    .ngg-gallery-thumbnail img:hover {
    background-color: transparent;
    }

    Add – !important – if needed.

    Thread Starter ShenPixel

    (@shenpixel)

    In IE11 the css doesn’t apply either, the Style Sheet linked on line 20 here is taking over still.

    @shenpixel, the stylesheet you linked is not called here, that’s /nextgen_gallery_related_images.css.
    Here you have to look at http://www.lovelightpixels.com/wp/wp-content/ngg_styles/nggallery.css?ver=3.9.1 and I see that you wrote:

    Remove hover:
    .ngg-gallery-thumbnail img:hover {
    background-color: none !important;
    }

    That “Remove hover” could be the cause, you don’t have to write it. Remove it or if you want to comment, use /* Remove hover */
    Then, I see that you still have “none”, so you can try “transparent” as I said above.

    Thread Starter ShenPixel

    (@shenpixel)

    Thank you tizz, I’ve finally got it, had to add one more style for ie. and the transparent took care of it in Chrome.

    @shenpixel, I’m glad it worked. Get well soon.

    Edit: for a cleaner and shorter code, you can merge the same properties into one declaration:

    .ngg-gallery-thumbnail-box, .ngg-gallery-thumbnail {
    float:none !important;
    display:inline-block;
    }

    Plugin Contributor photocrati

    (@photocrati)

    @tizz – Thanks!

    @shenpixel – Glad you have this sorted out.

    – Cais.

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

The topic ‘Basic Thumbnail Center Alignment & Borders on images’ is closed to new replies.