Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 5 Input Text-Align right

I want to display the values of my inputs aligned to the right. How can I do that?

You can see in the image what I want.

My code is as follows:

<td style="text-align:center; vertical-align: middle; padding: 8px 18px;">
    <input type="text" class="form-control float-end" id="orden${count}" value="${c}">
</td>
like image 931
Emili Bellot Pulido Avatar asked Oct 19 '25 03:10

Emili Bellot Pulido


1 Answers

Use text-end class...

<td style="text-align:center; vertical-align: middle; padding: 8px 18px;">
    <input type="text" class="form-control float-end text-end" id="orden${count}" value="${c}">
</td>
like image 57
Flash Thunder Avatar answered Oct 20 '25 17:10

Flash Thunder