Topic: Justified Gallery with django/mdbootsrap

free asked 2 years ago

my codehow i want

Is possible to have a justified gallery how in second screenshot with mdbootsrap? thank you

Grzegorz Bujański staff answered 2 years ago

Unfortunately not. It would be very difficult to create a solution that would recognize the width of the image and create an appropriate grid for it. But you can set specific size for all preview image parent and cut the image if it is too wide/tall:

Grzegorz Bujański staff answered 2 years ago

in lghtbox you can position the elements as you like. You can use grid and flex for this. Here is one example of how you can position elements differently:

free commented 2 years ago Edit Delete

Yes I know, but I generate img with for loop, is there a setting in mdb that adapts itself?

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.1
  • Device: all
  • Browser: all
  • OS: all
  • Provided sample code: No
  • Provided link: No