The technique demonstrated above is quite easy, if the user adding content has access to edit the theme's CSS file. In many situations, that is not an option. For cases where editing of the theme's CSS is not possible, the Equal Heights JQuery module can be used. Using the Equal Heights JQuery module is pretty much the same procedure: the user adding the content creates Panels Regions with the same CSS class they want to have matching heights, then the Equal Heights JQuery module provides a page at admin/settings/equalheights where the user can enter the name of the CSS class they used for their Panels Regions:

The interface at admin/settings/equalheights provided by the Equal Heights JQuery module
A nice aspect of this method is its general application; any nodes, blocks, and other page elements where you have control to provide a CSS class name is able to have height alignment handled more or less automatically. However, this does have a few drawbacks:
-
Users adding such content must have access to the Equal Heights JQuery administration page;
-
Users with such permissions need to have general CSS knowledge, as well as understand class naming quidelines to insure their CSS class names all have unique names;
-
If the content being aligned is not a simple case such as aligning two nodes, instead it is two short nodes in one column and a single taller node in a column next door. Something like this:
Comments
great post, do you have css
great post, do you have css examples of how to accomplish making equal panel heights? i've been googling for over an hour and haven't found anything to work.
No I don't have an example
No I don't have an example handy. However, you should just be able to loop at your page in FireBug and figure out which elements need to have height properties set to equal values. That's what I did before I learned of the Equal Heights module.
Post new comment