Skip to content

Views CSS Grid allows site builders to create a responsive View of content placed into CSS3 Grid layouts with or without adding their own CSS. There are facilities to add your own Grid styles.

License

backdrop-contrib/views_css_grid

Repository files navigation

*** This is a pre-release - use at your own risk. ***

Views CSS Grid

Views CSS Grid allows site builders to create a responsive View of content placed into a CSS3 Grid layouts with or without adding their own CSS.

There are facilities to add your own Grid styles.

INTRODUCTION

The module creates a new Views Format to display content in a CSS3 Grid.
Grid styles are:-

  • CSS Grid Fit - Works
  • CSS Grid Fill - Works
  • CSS Masonry - Work in progress

For more information about CSS Grid Fit and Fill see https://css-tricks.com/auto-sizing-columns-css-grid-auto-fill-vs-auto-fit

You can set the width of the content and the minimum height of the content to help create a more balanced grid.
The content will automatically wrap based on the width of the region. No need to use @media queries for different viewport widths.

REQUIREMENTS

Views UI

INSTALLATION

Install this module using the official Backdrop CMS instructions at https://backdropcms.org/guide/modules

USAGE

When editing a View, choose one of the following formats: -

  • CSS Grid Fill
  • CSS Grid Fit
  • CSS Gris Masonary

Settings:

Content width: Choose the width of the content

Minimum row height: Choose the minimum row height

Unit type for width and height: for the Unit of measure i.e.  px, em, ren, cm, mm, in, vh etc.

See https://www.w3schools.com/cssref/css_units.asp for all of the available options.

LICENSE

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

CREDITS / INSPIRATION

Backdrop CMS Links

Github Links

MAINTAINERS

About

Views CSS Grid allows site builders to create a responsive View of content placed into CSS3 Grid layouts with or without adding their own CSS. There are facilities to add your own Grid styles.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published