Topic: How to change the font-family of the "label" inside a textbox.

mhasham free asked 7 years ago


Hi there, I'm trying to customize the font-family of the label in the text box. I've made several attempts to change it from whatever it is to another font, but it doesn't seem to change. What it does (when you give it a different font family) is that it simply changes the color of the label. Any help will be greatly appreciated. thanks

Michal Szymanski staff answered 7 years ago


Hi, something like this?
  <style>
        .md-form label {
            font-family: cursive;
        }
    </style>
<div class="md-form">
    <input type="text" id="form1" class="form-control">
    <label for="form1" class="">Example label</label>
</div>


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags