Log in

View Full Version : css3 grid images combined with responsive modal ?



mlegg
03-22-2016, 01:24 PM
I've been using the CSS3 Grid Images - Fluid Scale, Responsive (http://fofwebdesign.co.uk/template/_testing/grid-img-rwd.htm) from Beverly.

I was wondering if it's possible to combine it with the Responsive Modal Overlay/ Pop-up Image Viewer (http://fofwebdesign.co.uk/template/_testing/modal-popup.htm)

Is it possible to use this code with percentages like instead of making smaller images too, use the code but on the smaller images use 30% and on the larger images use 100%? Meaning I have say 50 photos and rather than resizing them all to be a smaller size for the image grid.

but I want the smaller images in the gallery to popup lighbox ? in a window to view the larger images

thanks in advance

bojangles
03-22-2016, 05:55 PM
What have you tried yourself? Somebody already did the hard part so all you need to do is put the pieces together. If you're combining the scripts, post a demo of your own attempt. It looks easy enough if you start with the grid page and copy in the parts for the modal popup.

The grid works with any size images already thanks to background-size:cover in the CSS. And it looks like you can use any image in the modal popup. It could be the same as the grid images or any other.

mlegg
03-22-2016, 11:41 PM
Thank you

Beverleyh
04-07-2016, 09:40 AM
If you haven't yet done this yourself, here is a combined version: http://fofwebdesign.co.uk/template/_testing/grid-img-modal-popup-rwd.htm

mlegg
04-07-2016, 01:13 PM
thanks Beverly