I want to display text/label "Case sensitive" right next to my Captcha textbox. Like this image
Currently, it is displaying below the textbox. How to align text next to textbox?
Here is my code :
<div class="form-group col-md-3"> @Html.TextBox("CaptchaCode", null, new { @class = "form-control" }) (Case sensitive) </div>
You could just define it as text and add " " like so:
<div class="form-group col-md-3">
@Html.TextBox("CaptchaCode", "", new { @class = "form-control" }) <text>(Case Sensitive)</text>
</div>
This should work fine. Alternatively you can add a placeholder:
<div class="form-group col-md-3">
@Html.TextBox("CaptchaCode", "", new { @class = "form-control" }, new { placeholder = "Case Sensitive"})
</div>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.