Styling placeholder texts

Posted by: QuirksBlog, on 03 Dec 2015 | View original | Bookmarked: 0 time(s)

A quick note on styling placeholder texts. Although it’s very easy, it turns out that both MDN and the usual go-to CSS Tricks article leave out one important bit of data: when setting the color you should add opacity: 1 for Firefox.UnstyledMy task was to make sure that text in input fields, including placeholder text, uses exactly the same font and text colour as regular text.Here is the unstyled test; first a reference paragraph, then a form field with a value, then a form field with a placeholder....

Category: Regex | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 307 | Hits: 4

Similar Posts

  • Master Pages and Content Pages in WSS 3.0 more
  • Dynamically building controls in .NET 1.1 more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD