VOOZH about

URL: https://www.geeksforgeeks.org/css/pure-css-form-input-sizing/

⇱ Pure CSS Form Input Sizing - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Pure CSS Form Input Sizing

Last Updated : 23 Jul, 2025

Forms are essential in websites to collect data or information for various purposes. Using Pure CSS Forms, we can create different types of forms.

The size of the inputs of forms is always important. So inputs are important in any webpage form. It is used to take various inputs from the user which are essential in collecting data or information. Input elements have fluid width sizes in a syntax that is similar to Pure Grids. You can apply a pure-input-* class to these elements.

Pure CSS form input sizing: To apply the different sizes of input fields, you have to get knowledge about Pure CSS Grid. Pure CSS Grid classes are used inside the input field to define the input field size.

Syntax:

<form class="pure-form">
 <input type="text" class="pure-button"/>
</form>

Example 1:

Output:

👁 Pure CSS Form Input Sizing

Example 2:

Output:

👁 Pure CSS Form Input Sizing
Pure CSS Form Input Sizing
Comment
Article Tags: