![]() |
Foundation CSS is one of the popular front-end frameworks. It helps developers to add complex components to their websites very easily. It enables us to add various advanced components like accordions, breadcrumbs, buttons, and many more to the website. Thus, making the website more professional to use and also making it user-friendly. Kitchen Sink is a page in Foundation CSS in which all the major components are listed with their codes. It contains all the basic templates of each component with its code. In this article, we will learn about the Equalizer component present in the Kitchen Sink page of the Foundation CSS. The Equalizer component is very useful in modern websites where we need to make different components to be equal in height when they are arranged in vertical or horizontal order in the website. Foundation CSS Equalizer Data Attributes:
Note: The Equalizer component does not require any specific class. Syntax: <div class="grid-x grid-margin-x" data-equalizer="equalize1" data-equalize-on="medium"> <div class="cell medium-3"> <div data-equalizer-watch="equalize1"> ... </div> </div> ... </div> Example 1: In this example, we have 4 columns of different sized images and texts and we want them to be equal height when placed horizontally on the website. HTML
Output: Example 2: In this example, we are having 2 rows in which the first column has 3 rows and the second column has 4 rows respectively and we have stacked them in equal height using the Kitchen Sink Equalizer attributes. HTML
Output: ![]() Foundation CSS Kitchen Sink Equalizer Reference: https://get.foundation/sites/docs/kitchen-sink.html#equalizer |
Reffered: https://www.geeksforgeeks.org
Web Technologies |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 10 |