Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Hiding Images From Lightbox Galleries

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #239709
    brenda813
    Participant

    Does anyone know of a way CSS or Javascript, to hide specific images from a gallery? I have a gallery with 10 total images, but only all 10 should show when viewing on a phone or tablet. When viewing on a desktop, only 7 of those images should show. The only way I can think of is to copy the code and create two identical galleries, with the exception of those three images.

    #239715
    Atelierbram
    Participant

    There are possibly more ways to do this, but one way in CSS would be using nth-of-type selectors inside a media-query.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.