Author Chris Coyier . Home / Code Snippets / CSS / Style Placeholder Text Style Placeholder Text . There are options to give forms a sense of style without relying on placeholder text. With the first use the "type" and "placeholder" attributes.
The default color of placeholder text might be too low in contrast for legibility.
Interestingly Chrome (v20-23) now implements more styles than any other browser, but with a major caveat – the placeholder styles do no resize the input box.So line-height and padding moves the placeholder vertically, but move it too far and it will appear outside the input box. The .form-group class is the easiest way to add some structure to forms. Placeholderr is a lightweight and cross-browser jQuery plugin used to animated, user-friendly placeholders using CSS3 and a little JavaScript. Additional classes can be used to vary this layout on a per-form basis. Since Bootstrap applies display: block and width: 100% to almost all our form controls, forms will by default stack vertically. Use a