I have a simple form on my Bootstrap website, but instead of the basic gray text on a white background, I want white text on a gray background. I was able to take care of the gray background, but I cannot change the placeholder color or input color.
A bit of JSFiddle action.
Here is my HTML markup:
<div class="span6" id="email-form"> <form name="contact-form" id="contact-form" method="post" action="form-processing.php"> <input class="span6" name="Name" id="Fname" type="text" placeholder="Your name" required> <input class="span6" name="Email" id="Email" type="email" placeholder="Your email" required> <textarea class="span6" name ="Message" id="Message" type="text" rows="10" placeholder="What services will you be requiring?" required></textarea><br> <button type="submit" class="btn btn-primary">Send</button> <button type="clear" class="btn">Clear</button> </form> </div>
Here is the CSS I tried, the background color change works, but not the placeholder or text.
#Email, #Fname, #Message{ background-color:#666; } #Email placeholder, #Fname placeholder, #Message placeholder{ color:#FFF; } #Fname text{ color:#FFF; }
Brian source share