![]() |
VOOZH | about |
Foundation CSS is an open-source & responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to design beautiful responsive websites, apps, and emails that look amazing & can be accessible to any device. It is used by many companies such as Facebook, eBay, Mozilla, Adobe, and even Disney. The framework is built on Saas-like bootstrap. It is more sophisticated, flexible, and easily customizable. It also comes with CLI, so itβs easy to use it with module bundlers. It offers the Fastclick.js tool for faster rendering on mobile devices.
The Equalizer component helps to make multiple website elements of the same height. In modern browsers, sometimes the elements are not of the same height, as shown below:
π ImageThus, this makes the website look ugly. This type of problem can be solved easily by using the Equalizer component of Foundation CSS by making the height of all three columns equal.
Foundation CSS Equalizer Attributes:
Foundation CSS Equalizer Class:
Syntax:
<div class="grid-x grid-margin-x" data-equalizer="equalizer1" data-equalize-on="medium"> <div class="cell medium-4"> <div data-equalizer-watch="equalizer1"> ... </div> </div> </div>
Example 1: In this example, we added the equalizer to equalize all the three cells of the grid to make them equal in height irrespective of containing variable-sized images and text.
Output:
π ImageExample 2: In the example, we have nested used a nested equalizer to make equalize the content inside one of the boxes of the container grid. We have used the "data-equalize-on-stack" attribute.
Output:
π Foundation CSS Equalizer