Topic: Validation error width on Inputs/TextAreas squishes text
matt2
pro
asked 9 years ago
In order to fix this, we're adding:
.md-form {
label {
width: 100%;
}
}
Marta Wierzbicka
free
answered 9 years ago
matt2
pro
answered 9 years ago
.md-form label[data-error] {
width: 100%
}
This way you won't have to append a class to every validating input.
Marta Wierzbicka
free
answered 9 years ago
.full-width.md-form label {
width: 100%;
}
And then I add class .full-width and for this error width of validation label will be 100% and without this class width will be auto:
<div class="md-form full-width">
<input type="text" name="username" class="form-control invalid text" id="frm-form-username">
<label data-error="Not valid lorem ipsum dolor sitam" for="frm-form-username">Username</label>
</div>
Best,
Marta
johndoe
pro
answered 9 years ago
Marta Wierzbicka
free
answered 9 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- ForumUser: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No