简体   繁体   中英

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>

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>

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM