Skip to content

An intuitive, class-based interface for creating responsive equalized element heights within ZURB Foundation.

License

Notifications You must be signed in to change notification settings

jsmreese/responsive-equalized-heights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Responsive Equalized Heights

for ZURB Foundation

An intuitive, class-based interface for creating responsive equalized element heights within ZURB Foundation.

Installation

Responsive Equalized Heights is built to work with the grid from Foundation 5. It is untested with earlier versions of Foundation.

Bower

bower install responsive-equalized-heights

npm

npm install responsive-equalized-heights

Browser

<script src="path/to/responsive-equalized-heights.js"></script>

Usage

Include this project's script in your page after Foundation.

Then add responsive height classes to any elements that should be equalized. That's all. No container classes, no data attributes, no parent element requirements.

Responsive height classes use this format:

<screen_size>-height-<group_name>

screen_size is any of the Foundation screen sizes: small, medium, large, xlarge, or xxlarge.

group_name is any arbitrary string that will create a valid class name.

One or two letters work well: small-height-a or medium-height-aa

Longer names work, too: large-height-I-am-a-long__Group-Name

auto is a reserved group name.

At any screen size, all of the elements in each group will share equalized height.

For full details and examples, see the project site: http://jsmreese.github.io/responsive-equalized-heights/

About

An intuitive, class-based interface for creating responsive equalized element heights within ZURB Foundation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published