Generators · 100% free

CSS Form Input Styler

Style form inputs (text, select, textarea, checkbox) with consistent CSS, accessible focus states.

CSS
Postal code format invalid
css
.field { display: block; margin-bottom: 1rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input:disabled, select:disabled, textarea:disabled {
  background: #f9fafb; cursor: not-allowed;
}

.field-error input, .field-error select, .field-error textarea {
  border-color: #dc2626;
}
.field-error input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); }

.error-text { color: #dc2626; font-size: 0.75rem; margin-top: 0.25rem; }

About this tool

Generate cross-input CSS for text, select, textarea, checkbox. Includes accessible focus + error states.

More free tools

See all tools →
Free forever · No card

Why wait? Try it free today.

Stop managing feeds manually. Start optimising with AI in 30 seconds.

  • 100% free forever, no credit card required
  • 1 brand, 1 feed, 100,000 products per feed
  • Full AI Product Optimisation, Rule Engine, and 200+ channel exports
  • Pay only for AI credits when you need them