![]() |
VOOZH | about |
A Foundation is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Many companies, like Facebook, eBay, Mozilla, Adobe, and even Disney, use it. The framework is based on bootstrap, which is similar to SaaS. Itβs more complex, versatile, and configurable. It also comes with a command-line interface, making it simple to use with module bundlers. Email framework provides you with responsive HTML emails, which can be read on any device. Foundation for Apps allows you to build fully responsive web applications.
In this article, we will learn about the foundation CSS prototyping utility Positioning. It is used to change an element's position value.
Foundation CSS Prototyping Utility Positioning Classes:
Enabling Position:
@include foundation-prototype-position;
Syntax:
<div class="positioning-class"> Content </div>
Example 1: In this example, we will learn about classes fixed-top and fixed-bottom.
Output:
Example 2: In this example, we will learn about fixed and static. We will see, even after scrolling the webpage the content of the fixed div remain fixed.
Output:
Reference: https://get.foundation/sites/docs/prototyping-utilities.html#positioning