Oncord Community Logo
    • Recent
    • Popular
    • Register
    • Login

    Cascading masonry gallery styling

    Advanced Coding
    2
    4
    885
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BenB
      Ben
      last edited by scott_mcnaught

      Wanting to create an image gallery that uses the full (or close to full) height of each image into a vertical cascading gallery, similar to how Pinterest lays out its images. At the moment the Oncord gallery defaults to square images, and I can't work out how to alter this.

      Ben Johnston
      Evocative | Brand Design
      evocative.cc

      BenB 1 Reply Last reply Reply Quote 0
      • BenB
        Ben @Ben
        last edited by

        Masonry might be the actual term for the gallery style.

        Ben Johnston
        Evocative | Brand Design
        evocative.cc

        1 Reply Last reply Reply Quote 0
        • S
          scott_mcnaught
          last edited by scott_mcnaught

          Hey Ben,

          Currently we've been holding off implementing this until there is greater CSS support amongst browsers for masonry layouts.
          But unfortunately, there has been politics in the browser space as to how this will be implemented. A debate that has gone on for years now.

          Safari and Firefox have implemented a version which hangs off 'CSS grid' using grid-template-rows: masonry;
          https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Masonry_layout

          Chrome wants to implement the same feature using display: masonry.
          https://developer.chrome.com/blog/masonry

          Another reference:
          https://webkit.org/blog/15269/help-us-invent-masonry-layouts-for-css-grid-level-3/#the-debate

          Once it is implemented in a stable manner across browsers, we will add support to the native gallery for it.
          Until then, Oncord's gallery won't support masonry layouts and you would need to use an external JS solution for it.

          BenB 1 Reply Last reply Reply Quote 0
          • BenB
            Ben @scott_mcnaught
            last edited by

            Thanks Scott ... your answer would help explain the lack of straightforward solutions out there on the web!

            Glad to hear you're looking at implementing it once the standards are established. 🙂

            Ben Johnston
            Evocative | Brand Design
            evocative.cc

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Features
            • Website
            • Customer Database
            • Digital Marketing
            • Sell Online
            • Integrations
            Help & Resources
            • Contact Support
            • Learning Centre
            • Latest News
            • Developer Resources
            Oncord
            • Contact Us
            • Client Stories
            • Partner Program
            • Agency Login
            Legal
            • Software: EULA
            • Support & Professional Services
            • Reseller Agreement

            © 2023 Oncord. All Rights Reserved.