Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » center nextgen album gallery on mobile

  • Resolved Jeff F.


    I’ve tried every combo of words to search this so my apologies if it is a repeat.

    My album thumbnails will center on desktop and iPad but not on mobile.

    I have .ngg-galleryoverview {text-align:center; in the nextgen style sheet in the admin.

    I tried to add this as well and they don’t move.

    @media (max-width:320px) {
    .ngg-album-compact {
    margin-left: 40px;

Viewing 2 replies - 1 through 2 (of 2 total)
  • @jefferytodd If your theme template is responsive, you should not need particular media queries for centering. For center compact album I use:

    .ngg-album-compact {
    float:none !important;
    padding: 0 20px !important;

    and it works well on mobile too (you can adjust padding as you like).

    PS: is it }) a typo or did you write it just like that in the stylesheet?

    Jeff F.



    That worked beautifully. Thank you.

    And yes it was a typo, actually a cut and pasto.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘center nextgen album gallery on mobile’ is closed to new replies.