I'm trying to embed a call to gallery2 on a php web-page to display a 2X2 grid showing 4 thumbnails of the most recently added images.
I have found the code:
Quote:
< ? php @readfile('http://www.mysite.com/gallery/main.php?g2_view=imageblock.External&g2_blocks=recentImage|recentImage|recentImage|recentImage&g2_show=none&g2_maxSize=50'); ? >
To get the 4 most recent images but cannot figure out how to get it to display in a grid pattern. Is there some syntax i am missing to get it to do this? Or can it only be done with CSS? Or it cannot be done at all using the method above?
Any syntax help or css suggestions would be appreciated....
Posts: 38
Somebody kindly sent me the following code and CSS (adapted from that found at www.steffensenfamily.com) to get 4 recent images in a 2x2 square grid and i thought i'd share it for anybody else that might stumble across this thread in the future. It worked for me.... If anybody ever finds a better way to do this, please post it.
CODE:
CSS: