![]() |
Foundation CSS 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. This 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. Foundation CSS Dropdown is used to display the content when we click the element. We can put any type of content in the dropdown and access it by clicking the element. Dropdown is revealed when we click the element or hover over it. We can also position our dropdown as top, bottom, left, and right using the dropdown positioning classes. In this article, we will see how to create the dropdown in Foundation CSS. Foundation CSS Dropdown Classes:
Syntax: <div class="dropdown-pane" data-dropdown> ... </div> Example 1: The following code demonstrates the Foundation CSS Dropdown when we click the element or hover over it. HTML
Output: ![]() Foundation CSS Dropdown Basics Example 2: The following code demonstrates the Foundation CSS Dropdown positions. HTML
Output: ![]() Foundation CSS Dropdown positions Example 3: The following code demonstrates the Dropdown Explicit Positions Top and Bottom. HTML
Output: ![]() Dropdown Explicit Positions Top and Bottom Example 4: The following code demonstrates the Dropdown Explicit Positions Left and Right. HTML
Output: ![]() Dropdown Explicit Positions Left and Right Reference: https://get.foundation/sites/docs/dropdown.html |
Reffered: https://www.geeksforgeeks.org
CSS |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 10 |