Open cliffmcmanus opened 6 years ago
@cliffmcmanus can you please share the screenshot? Also, generated markup would be helpful.
Sorry overcome by life events. I will get you both this evening.
Cliff
Office: 404-506-2409
Mobile: 678-371-4841
Home: 770-641-9204
On Jan 29, 2018, at 12:44 PM, Anton Staroverov notifications@github.com wrote:
@cliffmcmanus can you please share the screenshot? Also, generated markup would be helpful.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Finally got back in the office. Thanks for looking into my problem
Here is the HTML snippet in my Edit.CSHTML
I noticed @tonystar has not been able to treat this.
Here is a fix. Put this in a custom.css file or at the bottom of the bootstrap version of the floatinglabel css file. Tweak as needed.
.has-float-label .form-control:placeholder-shown:not(:focus)+label.error {
font-size: 80%;
opacity: 1;
top: auto;
}
.has-float-label label.error {
display: block;
position: relative;
top: auto;
clear: both;
left: auto;
right: auto;
margin: 5px;
/*make this "left" if you wish and increase the bottom-margin/margin so it does not clash with any floating labels below it (if any).*/
text-align: right;
font-size: 80%;
}
.has-float-label label.error::after {
content: " ";
display: block;
position: relative;
height: auto;
top: auto;
clear: both;
left: auto;
right: auto;
font-size: 80%;
z-index: -1;
}
My validation message class and element is different from yours, so factor that in but the content of the CSS is generally the same.
I am developing a new app and love the visual for the float label. However when I add an asp-validation- the field name is overlay-ed. I would like the validation messages to appear under the field. I don't know if this is my lack of my knowledge of HTML/CSS or understanding of the usage of the add in. Here is an section of the cshtml file