The input name doesn\'t go over the field


Topic: The input name doesn\'t go over the field

jouvrard pro asked 6 years ago

Hello, I try to do a form with the input names go over the field when they are focused, but it doesn't work and I can't find the solution. Where is my code (MDBootstrap is included of course):
<div style="height: 100vh">
        <div class="flex-center flex-column">
            <div class="container">
                <div class="row">
                    <form class=" offset-md-3 col-md-6">
                        <div class="card testimonial-card">
                            <div class="card-up blue-gradient"></div>
                            <div class="avatar mx-auto white text-center">
                                <img src="images/user.png" class="rounded-circle">
                            </div>
                            <div class="card-body">
                                <h3 class="card-title">Accès compétiteurs</h3>
                                <hr>
                                <div class="md-form">
                                    <input type="text" id="login" class="form-control">
                                    <label for="login">Nom d'utilisateur</label>
                                </div>
                                <div class="md-form">
                                    <input type="password" id="password" class="form-control">
                                    <label for="password">Mot de passe</label>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

jouvrard pro answered 6 years ago

Sorry, I found the solution. In fact, I copied your example code in the "Quick start guide", but the jQuery version isn't 3.1.1, but 3.3.1. I think it would be great to correct that. :)

Marta Szymanska staff pro premium answered 6 years ago

Hi, thank you for noticing this, we will fix that. Best, Marta
Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.9
  • Device: PC
  • Browser: All
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags