Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Natao arisiva ity resaka mitohy ity. Mametraha fanontaniana azafady raha mila fanampiana.

:-moz-placeholder is no longer working on FF11

  • 3 valiny
  • 2 manana an'ity olana ity
  • 3 views
  • Valiny farany nomen'i cor-el

more options

This is no longer working:

-moz-placeholder {
 color: #f0f0f0; }

the placeholder color now rendering the textfield color

This is no longer working: :-moz-placeholder { color: #f0f0f0; } the placeholder color now rendering the textfield color

Novain'i rodm_sp t@

All Replies (3)

more options

Your CSS isn't valid. -moz-placeholder is pseudo-class. It must follow an element type, ID, class, etc.. Example:


input:-moz-placeholder { font-style: italic; color: silver }

<input id="example" type="text" placeholder="Click to make me go away.">


For details, see the following article: https://developer.mozilla.org/en/CSS/:-moz-placeholder

more options

Thanks for the reply.

The issue I found is that if you assigned a css color on your input field, the placeholder color will also use that even if you assigned a different color for placeholder.

Using your example:

input{color: red}

input:-moz-placeholder{color: green}


that won't work. The placeholder color will be RED instead of GREEN.

Novain'i rodm_sp t@

more options

Seems to be working fine for me on Linux with Firefox 11 on the demo page after clearing the current value to make the placeholder text show.

input{color: red}
input:-moz-placeholder{color: green}

Novain'i cor-el t@