My jsfiddle here has links to bootstrap and bootstrap material design. I want to make the font for the input placeholder smaller but it just doesn't budget, even with input-placeholder for moz or webkit. Any suggestions would be greatly appreciated.
html
<form class="form form-group has-info col-md-4">
<input class="search-input form-control" placeholder=" . . . enter pokemon name" type="text">
<button type="submit" class="btn btn-info btn-raised " name="button">Search!</button>
</form>
css
::-webkit-input-placeholder {
font-size: 25px;
}
:-moz-placeholder { /* Firefox 18- */
font-size: 25px;
}
::-moz-placeholder { /* Firefox 19+ */
font-size: 25px;
}
:-ms-input-placeholder {
font-size: 25px;
}
To resize a placeholder: Click inside the placeholder. The border changes to sizing handles. Move the pointer over the sizing handles and a + appears. Click and drag the placeholder to the size you want.
Definition and Usage. The ::placeholder selector selects form elements with placeholder text, and let you style the placeholder text. The placeholder text is set with the placeholder attribute, which specifies a hint that describes the expected value of an input field.
In most browsers, the placeholder text is grey. To change this, style the placeholder with the non-standard ::placeholder selector.
Responsive font sizes RFS can be enabled by changing the $enable-responsive-font-sizes Sass variable to true and recompiling Bootstrap. To support RFS , we use a Sass mixin to replace our normal font-size properties.
Add !important
to override the styles
::-webkit-input-placeholder {
font-size: 25px;
}
:-moz-placeholder { /* Firefox 18- */
font-size: 25px;
}
::-moz-placeholder { /* Firefox 19+ */
font-size: 25px;
}
/* Overriding styles */
::-webkit-input-placeholder {
font-size: 13px!important;
}
:-moz-placeholder { /* Firefox 18- */
font-size: 13px!important;
}
::-moz-placeholder { /* Firefox 19+ */
font-size: 13px!important;
}
<input type="text" placeholder="Example..">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With