Home > sdSetHeight

sdSetHeight

SdSetHeight is a project mainly written in ..., it's free.

A jQuery plugin for comparing element heights and setting them all the same.

sdSetHeight

AUTHOR: Adam Merrifield
VERSION: 1.1.0

About sdSetHeight

This little plugin checks the height of a child element or an array of child elements and compares it it with the parent and sets the height of the parent element to match. Alternatively, it can be used to compare an array of elements agains themselves to set said elements to the same height.

Contents

  • README.mdown
  • jquery.sdsetheight.js - development version
  • jquery.sdsetheight.min.js - minimized version

Argument definitions

elem: the comparative element value: the number in px to increase the height by

Usage

$('.someContainer').sdSetHeight($('.someChildren',30));
$('.someElements').sdSetHeight($('.someElements',0));
Previous:PHBee