Jump to content
helloworld001

How can one images in a format like Google images?

Recommended Posts

If you search for images on Google images, you will see how they setup their images, side by side and have infinity scroll.  I don't care about the infinity scroll part, but I am interested in how they set up the images? My plan is to retrive the images from the database and use pagination numbers.

Share this post


Link to post
Share on other sites

It's just a bunch of divs containing the images, with the divs having the css of display: inline-block. Just view the source code or use your browsers developer tools so you can hover over something on the page and see it's HTML/CSS.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.