Dino Geek, try to help you

How to change the appearance of form fields in CSS?


To change the appearance of form fields, you can use CSS. Here is an example:

1. Changing the background color and text color:
```
input[type=text], select, textarea { background-color: #f9f9f9; color: #555;
}
```
1. Changing the font family and size:
```
input[type=text], select, textarea { font-family: Arial, sans-serif; font-size: 18px;
}
```
1. Added some padding:
```
input[type=text], select, textarea { padding: 12px;
}
```
1. Adding a border:
```
input[type=text], select, textarea { border: 1px solid #ccc;
}
```
1. Adding a hover effect:
```
input[type=text]:hover, select:hover, textarea:hover { border-color: #888;
}
```

You can also do the same for the submit button in the form, example:

1. Changing the background color, text color, and removing the default styling:
```
input[type=submit] { background-color: #4CAF50; color: white; cursor: pointer; border: none;
}
```
1. Adding hover effect:
```
input[type=submit]:hover { background-color: #45a049;
}
```
Remember that in most cases you have to use a class or id to select the correct form because it could affect other forms on the same page if you do not specify it correctly.


Simply generate articles to optimize your SEO
Simply generate articles to optimize your SEO





DinoGeek offers simple articles on complex technologies

Would you like to be quoted in this article? It's very simple, contact us at dino@eiki.fr

CSS | NodeJS | DNS | DMARC | MAPI | NNTP | htaccess | PHP | HTTPS | Drupal | WEB3 | LLM | Wordpress | TLD | Domain name | IMAP | TCP | NFT | MariaDB | FTP | Zigbee | NMAP | SNMP | SEO | E-Mail | LXC | HTTP | MangoDB | SFTP | RAG | SSH | HTML | ChatGPT API | OSPF | JavaScript | Docker | OpenVZ | ChatGPT | VPS | ZIMBRA | SPF | UDP | Joomla | IPV6 | BGP | Django | Reactjs | DKIM | VMWare | RSYNC | Python | TFTP | Webdav | FAAS | Apache | IPV4 | LDAP | POP3 | SMTP

| Whispers of love (API) | Déclaration d'Amour |






Legal Notice / General Conditions of Use