have the following html structure. I want to display the buttons in the td elements aligned to right. Tried float:right in the css. But no change. please let me know where i am making mistake. Thanks in advance
<div id="saveResetDiv" class ="saveReset" style="display: none;">
<table id ="tableSaveReset">
<tbody>
<tr id ="buttonSaveReset" class= "buttonSaveReset">
<td class= "save" align= "right" ><button id="saveButton" class="save" bgcolor="#FF0000" >Save</button></td>
<td class= "reset" align= "right"><button id="resetButton" bgcolor="#FF0000">Reset</button></td>
</tbody>
</table>
</div>
Use float: right
property in CSS
First give some width to the table.
Then you can use,
float: right (or) align: right
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With