Equal height (pure CSS)
Purpose
Equalises the height of elements that are on the same baseline.
Use when
- Elements of varying heights are displayed on the same baseline.
Do not use when
No known use cases when this plugin should not be used.
Working example
How to implement
- Add the class
wb-eqht-grd
to the element that contains the grids that you want the height to be equal. - Add the class
hght-inhrt
to the nested elements inside the grids for which you want the height to be equal. - Add the class
eqht-trgt
to the equalize element. It is the same as applyinghght-inhrt
up to the child ofwb-eqht-grd
.
Configuration options
There are no configuration options.
Events
Document the public events that can be used by implementers or developers.
Event | Trigger | What it does |
---|---|---|
wb-init.wb-eqht-grd .eqht-trgt |
Triggered manually (e.g., $( ".wb-eqht-grd .eqht-trgt" ).trigger( "wb-init.wb-eqht-grd .eqht-trgt" ); ). |
Used to manually initialize the equal height plugin for deep elements. |
wb-ready.wb-eqht-grd .eqht-trgt |
Triggered automatically after steps form initializes. | Used to identify the element where steps form has initialized (target of the event)
|
Source code
- Date modified: