Utilizor
Contact Us

CSS Image Gallery

CSS can be used to create image galleries.

CSS Image Gallery

CSS can be used to create image galleries.

Example 1: Basic Image Gallery

The following image gallery is created with CSS:

Example 2: Responsive Image Gallery

How to use CSS Media Queries to create a responsive image gallery that will look good on desktops, tablets and smart phones.

Example

div.gallery {
  margin: 5px;
  border: 1px solid #ccc;
  float: left;
  width: 180px;
}

div.gallery:hover {
  border: 1px solid #777;
}