• Resolved andreapanayi

    (@andreapanayi)


    Is there a way for smaller screen laptops while using responsive gallery to choose how many columns it shows?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author bradvin

    (@bradvin)

    You can add some custom CSS to get 2 columns on mobile. You can tweak the below CSS based on the screen size you want and the gutter size your gallery uses:

    @media only screen and (max-width: 600px){
    	.foogallery.fg-default .fg-item {
    		margin: 10px !important; /* Change the gutter size */
    		/* Change the width so two columns are displayed.
    		The 20px value is the gutter multiplied by 2
    		as it is displayed on the left and right of the item. */
    		width: calc(50% - 20px) !important;
    		min-width: calc(50% - 20px) !important;
    		max-width: calc(50% - 20px) !important;
    	}
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Responsive gallery’ is closed to new replies.