Topic: Icon Preview for Input is Centered not on Left
jederrick free asked 4 years ago
Expected behavior Actual behavior Resources (screenshots, code snippets etc.)
Email User
Konrad Stępień staff answered 4 years ago
Hi @jederrick,
Can you use this code:
<div class="col-md-6">
<!-- Material input -->
<div class="md-form form-sm">
<mdb-icon fas icon="user" class="prefix"></mdb-icon>
<input mdbInput type="text" id="user" class="form-control form-control-sm">
<label for="user">User</label>
</div>
</div>
Edited lines:
mdb-icon fas icon="user" class="prefix"...
and
input mdbInput type="text" id="user" class="form-control form-control-sm"
Can you send me a link to documentation? I'll change it if the page includes bug.
Best, Konrad.
jederrick free answered 4 years ago
Code sample
</div>
<div class="col-md-6">
<!-- Material input -->
<div class="md-form form-sm">
<mdb-icon fas icon="user"></mdb-icon>
<input mdbInput type="text" id="form18" class="form-control form-control-sm">
<label for="user">User</label>
</div>
</div>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 8.8.1
- Device: desktop
- Browser: Chrome
- OS: ubuntu
- Provided sample code: No
- Provided link: No