Accessible Forms
🏠 | « | »
Top 14 Form Usability Tips
11. Use design to help the user
Use large font in text fields
input[type="checkbox"] {transform:scale(1.5);margin:4px;}
input[type="radio"] {transform:scale(1.5);margin:4px;}
input {font-size: 1.5em;}
beware IOS - if font size > 15px then IOS disables autozoom
Beef up ALL borders - PLEASE!
Change the label cursor
label { cursor: pointer; }
Highlight active and/or completed fields
input:focus, input:hover {background:#FFFF00;} (highlites control from keyboard or mouse)
:required {border-left: red double 8px;}
An Ultimate Guide to CSS Pseudo-Classes and Pseudo-Elements
Distinguish primary and secondary actions
You can easily style the following:
- form
- fieldset
- label
- button
- input type="text" (any text input)
- textarea
Style mostly. Your results may vary
- legend (positioning)
- checkbox
- radio button
No style
- select
- option
- optgroup
- datalist
- progress
- meter
Resources for styling forms
Accessibility of Styled Form Controls
MDN HTML forms
Advanced CSS-Only Form Styling