Jump to content
View in the app

A better way to browse. Learn more.

Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Layout: Grids

Description

The grid module provides classes for building layouts based on a flexible 12-column grid, with automatic margins, and with additional classes to enable the layout to collapse properly on smaller devices.

 

Usage

A grid should be made up of a wrapper element with the class ipsGrid, and direct descendants with appropriate size classes applied (see below). For example:

<div class='ipsGrid'>
	<div class='ipsGrid_span3'>Span 3</div>
	<div class='ipsGrid_span3'>Span 3</div>
	<div class='ipsGrid_span4'>Span 4</div>
	<div class='ipsGrid_span2'>Span 2</div>
</div>

This would render as:

Span 3
Span 3
Span 4
Span 2

Grid classes ipsGrid_span1 through ipsGrid_span12 are available for the various column sizes.

 

Wrapping Grid Items

Elements in a grid will automatically neatly wrap to new rows, providing every item in the grid uses the same span width and height, without you needing to manually create new row structures. For example:

<div class='ipsGrid'>
	<div class='ipsGrid_span6'>Span 6</div>
	<div class='ipsGrid_span6'>Span 6</div>
	<div class='ipsGrid_span6'>Span 6</div>
	<div class='ipsGrid_span6'>Span 6</div>
</div>
Span 6
Span 6
Span 6
Span 6

For grids where your items may differ in height or width, consider the ips.ui.grid widget instead.

 

Responsiveness

To cause the grid layout to collapse on smaller devices, add either ipsGrid_collapseTablet or ipsGrid_collapsePhone to the class list on the wrapper element, like so:

<div class='ipsGrid ipsGrid_collapsePhone'>
	...
</div>

 

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.