Masonry gallery with MLA possible?
-
Hi David,
I am trying to use this plugin for all galleries of my site. In the link I posted there is a preview of one of my galleries. How could I create a masonry gallery? Or how could I force vertical images to have the same height of horizontal ones?
Hope my question is clear…
Thank you again,
CristianoThe style used is:
<style type="text/css"> #[+selector+] { text-align: center; margin: auto; } #[+selector+] .gallery-item { display: inline-block; margin: auto; padding: 5px; height: auto; text-align: center; } #[+selector+] .gallery-item .gallery-icon img { display: inline; margin: auto; border: 0px solid #ffffff; max-width: 150px; } #[+selector+] .gallery-caption { visibility:none; } /* see mla_gallery_shortcode() in media-library-assistant/includes/class-mla-shortcodes.php */ </style>
The markup:
Open:
<div id='[+selector+]' class='gallery galleryid-[+id+] gallery-columns-[+columns+] gallery-size-[+size_class+]'>
Item:
<[+itemtag+] class='gallery-item [+last_in_row+]'> <[+icontag+] class='gallery-icon'> [+link+] </[+icontag+]> </[+itemtag+]>
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Masonry gallery with MLA possible?’ is closed to new replies.