Skip to main content


Show more

Foundation CSS Controls

Foundation CSS Controls

Foundation CSS provides a variety of controls to enhance user interaction and input handling in web applications. These controls include form elements, buttons, and other interactive components that allow users to interact with the content of the website or application. Here's an overview of some commonly used controls in Foundation CSS:

1. Buttons

Buttons are interactive elements used to trigger actions or navigate to different parts of the website or application. Foundation CSS offers a range of button styles and sizes, including primary, secondary, and tertiary buttons, as well as button groups and dropdown buttons.

Example button markup:

<a href="#" class="button">Primary Button</a>
<a href="#" class="button secondary">Secondary Button</a>
<a href="#" class="button tertiary">Tertiary Button</a>

2. Form Elements

Foundation CSS provides styles for various form elements such as input fields, checkboxes, radio buttons, select menus, and textareas. These form elements are designed to be responsive and accessible, ensuring a consistent and user-friendly experience across different devices.

Example form markup:

<input type="text" placeholder="Enter your name">
<input type="checkbox" id="checkbox1">
<label for="checkbox1">Checkbox</label>
<input type="radio" id="radio1">
<label for="radio1">Radio Button</label>
  <option value="option1">Option 1</option>
  <option value="option2">Option 2</option>

3. Switches

Switches are toggleable elements used to enable or disable a setting or feature. Foundation CSS provides styles for switches that are visually appealing and easy to use. These switches can be customized with different colors and sizes to match the overall design of the website or application.

Example switch markup:

<input type="checkbox" id="switch1">
<label for="switch1" class="switch"></label>

4. Sliders

Sliders allow users to select a value from a range of options by dragging a handle along a track. Foundation CSS provides styles for sliders that are responsive and customizable. These sliders can be used for tasks such as setting preferences, adjusting settings, or selecting a range of values.

Example slider markup:

<input type="range" id="slider1" value="50">

5. Datepickers

Datepickers are interactive calendars used to select dates or date ranges. Foundation CSS offers styles for datepickers that are easy to use and integrate into web forms. These datepickers support various date formats and allow users to navigate through months and years to choose the desired date.

Example datepicker markup:

<input type="date" id="datepicker1">


Foundation CSS controls provide developers with a set of customizable and responsive components to enhance user interaction and input handling in web applications. By leveraging these controls, developers can create intuitive and user-friendly interfaces that improve the overall user experience.