Issue
I have been searching for a way for my invalid tooltips to move to move a bit to the right to match my input position, but so far I don't have any luck. Here's the image:
Here's the code for this:
<div class="form-group row">
<label for = "contact" class="col-2 col-form-label">Contact:</label>
<div class="col-4" id="contactContainer">
<div class="flex phone"style="margin-bottom:10px;">
<input style="margin-right: 10px; width: 200px;" id="validationcontact" name="contact" type="text" class="form-control" pattern="\b\d{8}\b" required >
<input type="button" class="ar add" value="Add More Field" style="cursor: pointer;">
<!-- <span class="ar add"><label style="cursor: pointer; padding-top: 5px;"><i data-feather="plus" ></i></label></span> -->
<span class="ar remove"><label style="cursor: pointer; padding-top: 5px;"><i style="width: 20px; height: 20px; color: lightseagreen;"data-feather="x"></i></label></span>
<div class="invalid-tooltip">
Enter a correct Contact!
</div>
</div>
</div>
========================================================================
Does anyone know how invalid tooltips can move? I tried to do padding-left
and padding-right
it seems is increasing the button instead ?
Solution
You should try margin-left
and left
to bump it a bit, instead of padding.
Answered By - Anye
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.