How To Change The Placeholder Style Using CSS ?
The placeholder styles can be changed by using
::placeholder{}
<!DOCTYPE html> <html> <head> <title>ITSolutionsGuides</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> ::placeholder { text-align:center; color: red; opacity: 0.5; /* Firefox */ } :-ms-input-placeholder { /* Internet Explorer 10-11 */ color: red; } ::-ms-input-placeholder { /* Microsoft Edge */ color: red; } </style> </head> <body> <p>Placeholder Styles</p> <input type="text" placeholder="---Placeholder Styles---"> </body> </html>
We hope it helps everyone. Thanks for supporting ITSolutionsGuides and keep supporting us also follow us in social media platforms.
Be the first to know about releases and tutorial news and solutions.
We care about your data in our privacy policy.
ITSolutionsGuides was started mainly to provide good and quality web solutions for all the developers. We provide tutorials to support all the developers and also we try to provide solutions to the errors we face while coding.
Copyright © 2023 - 2024 All rights reserved | ITSolutionsGuides