css align button to right code example
Example 1: align button right
<input type="button" value="Click Me" style="float: right;">
Example 2: how to right align a text button
.flex-box {
display:flex;
justify-content:space-between; //button with flex box
outline: 2px dashed blue;
}
.flex-box-2 {
display:flex;
justify-content: flex-end;
outline: 2px deeppink dashed;
}
Example 3: how to right align a text button
<p align="right">
<input type="button" value="Click Me" />
</p>
Example 4: how to align form buttons right
style="float: right;"