Grid

Grid (3)

Wednesday, 01 April 2015 01:23

Masonry

Written by

Masonry layouts are like a jigsaw puzzle. This layout attempts to create a layout that best fits the various sizes and shape of the items in the layout. The width of featured and non-featured items can be specified in the module settings as well as the gutter size.

Masonry

Masonry layouts are typically vertical grids rather than horizontal grids which means that the script will try to place the items evenly across the page rather than evenly down the page.

  • DeathtoStock_EnergyandSerenity6
  • DeathtoStock_EnergyandSerenity4
  • DeathtoStock_EnergyandSerenity7
  • DeathtoStock_EnergyandSerenity1

 

Masonry with equal heights

If your items have different heights then you may receive varied results. However it is possible to specify that all items have the same height in the module setting.

  • Out

    Out

  • looking

    looking

  • Bridge.

    Bridge.

  • Bamboo.

    Bamboo.

  • City.

    City.

  • Above.

    Above.

  • Walking

    Walking

  • Eating

    Eating

 

Masonry with Overlay

This style adds a static overlay to all items in the layout.

Masonry Overlay

  • DeathtoStock_EnergyandSerenity6

    DeathtoSto...

  • DeathtoStock_EnergyandSerenity4

    DeathtoSto...

  • DeathtoStock_EnergyandSerenity7

    DeathtoSto...

  • DeathtoStock_EnergyandSerenity1

    DeathtoSto...

 

Masonry with Animated Overlay

This style adds an animated overlay ot the item when the user hovers over any item in the layout.

Masonry Overlay Animated

  • DeathtoStock_EnergyandSerenity6

    DeathtoStock_EnergyandSerenity6

  • DeathtoStock_EnergyandSerenity4

    DeathtoStock_EnergyandSerenity4

  • DeathtoStock_EnergyandSerenity7

    DeathtoStock_EnergyandSerenity7

  • DeathtoStock_EnergyandSerenity1

    DeathtoStock_EnergyandSerenity1

 

Masonry with Overlay only on featured items

The overlay on featured items only option adds the title, text or any other elements specified in the item layout with an overlay effect only to featured items. Any non featured items are displayed as an image only. 

Masonry Featureed Overlay

 

Masonry with boxed styling

The masonry example below uses the built in boxed styling that can be applied to most of the Zentools layouts. The boxed styling targets all items other than the first item (in this case all items except for the image) and places in a padded box. The color of the box is easily specified in the module settings.

Masonry Boxed

 

Masonry with small items

This is an example of the masonry layout using custom values for the widths of the standard and featured items. In this case standard items have a width of 12% and featured items have a width of 25%. Custom widths are easily created by creating custom settings in the module parameters.

Masonry small

  • DeathtoStock_EnergyandSerenity6
  • DeathtoStock_EnergyandSerenity4
  • DeathtoStock_EnergyandSerenity7
  • DeathtoStock_EnergyandSerenity5
  • DeathtoStock_EnergyandSerenity3
  • DeathtoStockSerenity8

 

A note on using masonry layouts

The Zentools2 module provides a lot of control when it comes to rendering masonry layouts. It's important to note that you may experience inconsistent results depending on the values you supply for item widths and gutters.

The demo above (other than the small example) use the following width values:

  • Item width: 24%
  • Featured Item Width:49%
  • Gutter Width:1%
  • Bottom gutter: 4px 
 

Masonry Settings

Options

The following options can be found in the options panel in the module settings.

Select a theme:

none / boxed / overlay / Featured Overlay / Animated Overlay

 

Make items equal height:

off / on

 

Theme

The following options can be found in the theme panel in the module settings

Item Collapse width

This setting specifies the browser width at which all items are given 100% width.

 

Item Width

This setting specifies the width of non-featured items in the layout. Use px or % values.

 

Featured Item Width

This setting specifies the width of the featured items in the layout. Use px or %.

 

Gutter width

This setting specifies the gutter between items in the layout. Use px or %.

 

Bottom gutter width

This item specifies the margin below items in the layout. Use px.

Friday, 20 March 2015 03:46

Grid Documentation

Written by
Tuesday, 17 March 2015 04:15

Grid Overview

Written by

The grid layout uses a flexible responsive grid that allows the user to set a maximum number of columns (1-6) to be used in any given layout.

This means that at it's widest point the grid will only be displayed in 1,2,3,4,5 or 6 columns. At screen widths larger than the desktop breakpoint the module will always display the maximum number of columns.

For instance if you set the desktop value to 1200px and the maximum column option to 4, then above 1200px the module will always display it's items in 4 columns.

At smaller screen resolutions the grid will collapse to a smaller number of columns to allow for the optimal display of images. 

 

Maximum 3 column grid

The Grid below is set to display in a maximum of 2 columns. The settings in the module determine the points at which the grid resolves to 3,2 and 1 column.

Images loading please wait ...

 

Maximum 4 column grid

The Grid below is set to display in a maximum of 4 columns. The settings in the module determine the points at which the grid resolves to 3,2 and 1 column.

  • DeathtoStockSerenity8
  • DeathtoStock_EnergyandSerenity10
  • DeathtoStock_EnergyandSerenity5
  • DeathtoStock_EnergyandSerenity3

 

Maximum 2 column grid

The Grid below is set to display in a maximum of 2 columns. The settings in the module determine the points at which the grid resolves to 3,2 and 1 column.

  • Open Plain

    Open Plain

  • Southside

    Southside

 

Columns within grids

The Grid below is set to display in a maximum of 2 columns. The settings in the module determine the points at which the grid resolves to 3,2 and 1 column.

  • On the look out

    On the look out

    Morbi vestibulum sagittis nisl, in iaculis est suscipit in. Aenean et semper elit. Nullam volutpat ligula ut vulputate porta. Nam dictum tortor enim, sed varius quam molestie ac.
  • Southside of bells

    Southside of bells

    Morbi vestibulum sagittis nisl, in iaculis est suscipit in. Aenean et semper elit. Nullam volutpat ligula ut vulputate porta. Nam dictum tortor enim, sed varius quam molestie ac.
  • Walk to winki

    Walk to winki

    Morbi vestibulum sagittis nisl, in iaculis est suscipit in. Aenean et semper elit. Nullam volutpat ligula ut vulputate porta. Nam dictum tortor enim, sed varius quam molestie ac.
  • Scout

    Scout

    Morbi vestibulum sagittis nisl, in iaculis est suscipit in. Aenean et semper elit. Nullam volutpat ligula ut vulputate porta. Nam dictum tortor enim, sed varius quam molestie ac.

 

Marginless grid

The Grid below is set to display in a maximum of 2 columns. The settings in the module determine the points at which the grid resolves to 3,2 and 1 column.

Images loading please wait ...

 

Grid with overlay

The grid below is displaying a maximum of 3 column grids, with no margins and the title element overlaying the image.

 

Marginless grid with animated overlay

The grid below is displaying a maximum of 3 column grids, with no margins and the title element transitions into view when the user hovers over the image.

 

Boxed theme with equal heights enabled

The grid below uses the boxed theme and the setting to make the items equal height enabled. The equal height settings ensures that your grid of items maintains a uniform and consistent display.

  • Road to somewhere

    Road to somewhere

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut consequat ac eros efficitur sollicitudin. Donec mauris velit, blandit at leo eu, egestas scelerisque velit. Proin ut velit eget risus ullamcorper fringilla. Donec eu magna quis quam vehicula hendrerit id non mi.
  • Edgyness

    Edgyness

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut consequat ac eros efficitur sollicitudin.

 

Boxed theme with equal heights disabled

The grid below uses the boxed theme and the setting to make the items equal height disabled.

  • In-the-fields

    In-the-fields

    Morbi non ultrices velit. Curabitur ut ultrices diam. Mauris nec dolor sodales, dictum arcu sed, placerat nulla. Curabitur faucibus, sapien ac cursus scelerisque, mauris ante gravida massa, elementum auctor orci ante sed eros. Maecenas facilisis elementum ligula, eu pulvinar nunc aliquet id. Sed semper ex est, vel ultricies magna viverra quis. Etiam feugiat porta venenatis.
  • Couch-man

    Couch-man