Skip to content

Instantly share code, notes, and snippets.

@marsvogel
Created October 28, 2012 21:13
Show Gist options
  • Save marsvogel/3969935 to your computer and use it in GitHub Desktop.
Save marsvogel/3969935 to your computer and use it in GitHub Desktop.

Revisions

  1. marsvogel renamed this gist Oct 28, 2012. 1 changed file with 0 additions and 0 deletions.
  2. marsvogel revised this gist Oct 28, 2012. No changes.
  3. marsvogel created this gist Oct 28, 2012.
    17 changes: 17 additions & 0 deletions css-style-placeholder-text
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    /*
    * Don’t try to combine the selectors because it won’t work!
    *
    * In Firefox the placeholder attribute inherhits all the
    * input styles. To solver this be more specific with
    * input.YourClass
    */

    /*webkit-browsers like Chrome and Safari*/
    .YourClass::-webkit-input-placeholder {
    /*your stiles here*/
    }

    /*gecko-browsers like Firefox*/
    .YourClass:-moz-placeholder {
    /*your stiles here*/
    }