I have been trying to make my Wordpress Gallery responsive with the help from another post:Making WordPress Gallery (.gallery-item) Responsive?
I would also like the original 5-column gallery to display three columns on a tablet. I have used the following css:
/* For displaying 3 columns on tablet */
@media only screen and (max-width: 800px) {
.gallery-columns-5 .gallery-item {
width: 33% !important;
}
}
This works and is now displaying three columns. But it leaves a blank space after every 5th picture. As suggested in the other post i tried
.gallery-columns-5 .gallery-item:nth-child(5n+1) {
clear: none;
}
But this does not seem to work. Does anyone know how to get rid of the blank spaces and still display the page correctly on both tablets and desktops?
The URL for the page is: http://www.xn--l-guiden-44a.dk/billede-test