Follow
Follow

TOP 24 CSS Input Text

INPUT TEXT

Input text material with gradient.

Author

  • Lucas Oliveira

Made with

  • HTML / CSS (SCSS)

INPUT GROUP

Input group :focus-within.

Author

  • Aaron Iker

Made with

  • HTML / CSS (SCSS) / JS

MATERIAL INPUT TEXT FIELDS

Author

  • Fatma

Made with

  • HTML / CSS

JUMPING INPUT TEXT

Author

  • Niklesh Tiwane

Made with

  • HTML / CSS

FORM LABEL SHOW AFTER INPUT TEXT

Form label show after input text only CSS.

Author

  • Fidalgo

Made with

  • HTML / CSS

NOTIFY ME

Form validation using HTML required and pattern attributes together with CSS :required and :valid selectors.

Author

  • bertdida

Made with

  • HTML / CSS (SCSS)

ELASTIC VALIDATION

Author

  • Andreas Storm

Made with

  • HTML / CSS (Stylus)

INPUT:NOT(:PLACEHOLDER-SHOWN)

It looks kinda similar to the text inputs of the framework Materialize.

Author

  • Andreas Storm

Made with

  • HTML / CSS (Stylus)

FORM INPUT DESIGN

Form input designs with hover and focus.

Author

  • Mahesh

Made with

  • HTML
  • CSS (bootstrap.css)

INPUT FIELD GRADIENT BORDER FOCUS FUN

A gradient border on an input field that feathers out when focussed.

Author

  • Rik Schennink

Made with

  • HTML
  • CSS/SCSS

CSS ONLY FLOATED LABELS

A CSS only approach to the floated labels UI pattern.

Author

  • Nick Salloum

Made with

  • HTML
  • CSS/SCSS

CSS FIELDS

Fields with CSS custom properties.

Author

  • Stas Melnikov

Made with

  • HTML
  • CSS

INPUT FIELD WITH UNDERLINE UNDER EACH CHARACTER

Try deleting and writing something else in the input field. It uses the ch unit whose width is the width of the 0 character. It also assumes the font in the input field is a monospace one so that all characters have the same width. So the width for every character is always 1ch. The gap between the characters is taken to be .5ch. This is the value we set for letter-spacing. The width of the input is the number of characters times the sum between the letter width (1ch) and the gap width (.5ch). So that’s 7*(1ch + .5ch) = 7*1.5ch = 10.5ch. We remove the actual border of the input and we set a fake one using a repeating-linear-gradient. The dash (dimgrey) goes from 0 to 1ch and the gap (transparent) starts immediately after the dash and goes to 1.5ch. It’s attached to the left and the bottom of the input – this is the background-position component (0% horizontally and 100% vertically). It spreads across the entire input horizontally (100% in the ideal case, the input width minus the gap to take care of rendering issue in Chrome and Firefox) and is 2px tall – this is the background-size component of the background.

Author

  • Ana Tudor

Made with

  • HTML / CSS (SCSS)

EMAIL INPUT FIELD

Just a nice little input field.

Author

  • Dean Hidri

Made with

  • HTML / CSS (SCSS)

INPUT TEXT/PASSWORD ANIMATION

Only CSS input text/password animation.

Author

  • brayden cha

Made with

  • HTML / CSS (SCSS)

MINIMAL MATERIAL DESIGN FORM INPUT

Super easy and fully scalable Material Design form input. Change one variable to change the size of everything.

Author

  • Kyle Lavery

Made with

  • HTML (Pug) / CSS (SCSS)

CSS-ONLY MATERIAL INPUTS

Inspired by Google’s Material Design guidelines for text fields.

Author

  • Lewis Robinson

Made with

  • HTML (Pug) / CSS (SCSS)

WEBFLOW-STYLE EMAIL INPUT

Based on the input on https://webflow.com/cms. Changed to make use of pseudo elements and flexbox layout.

Author

  • Phil Rose

Made with

  • HTML / CSS (SCSS)

NICE, COMPLIANT INPUT BOXES

Nice input box with a lot of styling based on sibling selectors and psuedo classes. CSS only, and WCAG 2.0 AA compliant!

Author

  • Andrew Tunnecliffe

Made with

  • HTML / CSS

MATERIAL DESIGN INPUT TEXT

Author

  • Ben Mildren

Made with

  • HTML / CSS (SCSS)

GOOGLE MATERIAL DESIGN INPUT BOXES

A CSS experiment to recreate the Google Material Design Polymer input boxes in CSS.

Author

  • Chris Sevilleja

Made with

  • HTML / CSS

FANCY TEXT INPUTS

Author

  • Alex Bergin

Made with

  • HTML / CSS (Sass)

ADAPTIVE PLACEHOLDER

Once activated, the input placeholders become input labels.

Author

  • Danny King

Made with

  • HTML (Haml) / CSS (Less)

TEXT INPUT

I wanted to play with some input styles that don’t rely on hover, don’t add clutter, show the label at all times, and show placeholder text when it is actually relevant.

Author

  • Michael Arestad

Made with

  • HTML / CSS (SCSS)
Newsletter
Join Design Community
Get the latest updates, creative tips, and exclusive resources straight to your inbox. Let’s explore the future of design and innovation together.