![]() |
Styling placeholder text in an input field in CSS involves using the Note: The Syntax:/* Styling placeholder text with a different color */
input::placeholder {
color: #999;
}
/* Changing the font size of placeholder text */
input::placeholder {
font-size: 14px;
}
Features:
|
Reffered: https://www.geeksforgeeks.org
CSS |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |